Skip to content

Commit

Permalink
Updated README and made animals not eat off the ground if mob griefin…
Browse files Browse the repository at this point in the history
…g is disabled.
  • Loading branch information
Haven-King committed Apr 26, 2020
1 parent f0d37e0 commit 57b32b1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# TinyTweaks
A collection of small tweaks for Minecraft.
A collection of small tweaks for Minecraft.

## Plant Tweaks
* Easy Harvest Crops - Right clicking fully grown clops harvests and replants them
* Easy Harvest Sugarcane - Right clicking sugarcane harvests all sugarcane higher than the one you clicked. Preserves the bottom-most block
* Sapling Succession - Saplings that fall on dirt or grass will automatically plant
* Grass Spreading - Grass and long grass spread naturally over time. Also removes hitboxes from grass and long grass. Seeds can be obtained by hoeing the ground under them
* Farmer Villager Automation - Farmer villagers will deposit excess items into a nearby chest

## Animal Tweaks
* Animals Eat off the Ground - Chickens, cows, horeses, pigs, sheep, and wolves will eat off the ground
* Wild Wolves Breed - Wild wolves are able to be bred. Allows for some neat natural systems!

## Miscellaneous Tweaks
* Entity Ignition - Right click mobs with flint and steel to light them on fire
* Sturdy Lanterns - Gives lanterns a blast resistance of 6 (allows them to survive Ghast fireballs)
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import net.minecraft.entity.passive.AnimalEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.Ingredient;
import net.minecraft.world.GameRules;

import java.util.EnumSet;
import java.util.List;
Expand All @@ -31,7 +32,7 @@ public GroundFoodMateGoal(AnimalEntity animal, Ingredient food) {
}

public boolean canStart() {
if (Tweaks.CONFIG.animalsEatOffGround && this.animal.canEat() && this.animal.getBreedingAge() == 0) {
if (Tweaks.CONFIG.animalsEatOffGround && this.animal.getEntityWorld().getGameRules().getBoolean(GameRules.MOB_GRIEFING) && this.animal.canEat() && this.animal.getBreedingAge() == 0) {
this.foodEntity = this.findFood();
}

Expand Down

0 comments on commit 57b32b1

Please sign in to comment.