TU43 Release 3
+ Gameplay changes Stained clay renamed to "Hardened Clay" (e.g. White Hardened Clay) Gold ore now generates in mesa biomes between Y=32 and Y=79 Shears can no longer be enchanted with Silk Touch Pigs can be led/bred with potatoes and beetroots (in addition to carrots) Elder Guardians now drop dry sponges instead of wet sponges Endermen now spawn in the Nether
This commit is contained in:
@@ -36,6 +36,8 @@ Pig::Pig(Level *level) : Animal( level )
|
||||
goalSelector.addGoal(3, new BreedGoal(this, 1.0));
|
||||
goalSelector.addGoal(4, new TemptGoal(this, 1.2, Item::carrot_on_a_stick_Id, false));
|
||||
goalSelector.addGoal(4, new TemptGoal(this, 1.2, Item::carrot_Id, false));
|
||||
goalSelector.addGoal(4, new TemptGoal(this, 1.2, Item::potato_Id, false));
|
||||
goalSelector.addGoal(4, new TemptGoal(this, 1.2, Item::beetroot_Id, false));
|
||||
goalSelector.addGoal(5, new FollowParentGoal(this, 1.1));
|
||||
goalSelector.addGoal(6, new RandomStrollGoal(this, 1.0));
|
||||
goalSelector.addGoal(7, new LookAtPlayerGoal(this, typeid(Player), 6));
|
||||
@@ -199,7 +201,10 @@ shared_ptr<AgableMob> Pig::getBreedOffspring(shared_ptr<AgableMob> target)
|
||||
|
||||
bool Pig::isFood(shared_ptr<ItemInstance> itemInstance)
|
||||
{
|
||||
return itemInstance != nullptr && itemInstance->id == Item::carrot_Id;
|
||||
if (itemInstance == nullptr) return false;
|
||||
return itemInstance->id == Item::carrot_Id
|
||||
|| itemInstance->id == Item::potato_Id
|
||||
|| itemInstance->id == Item::beetroot_Id;
|
||||
}
|
||||
|
||||
ControlledByPlayerGoal *Pig::getControlGoal()
|
||||
|
||||
Reference in New Issue
Block a user