Brandonbr1_nug
-
Posts
7 -
Joined
-
Last visited
Posts posted by Brandonbr1_nug
-
-
I get this error when i start up forge sever for 1.12.2 :https://pastebin.com/Hz1dGb4P
-
Hi I would like to how how it is so that when a mob hits you it gives you the potion (poison) effect for 4 seconds
-
Hi I would like to know how you would make a custom mob rideable and how to change it rideable speed
code:
public class Ostrich extends AnimalEnity { public static final OST_DROP = Ingredient.from.Items(Items.RAW_BEEF); public Ostrich(EntityType<? extends AnimalEnity> type World worldIn) { super (type , worldIn); } public static AttributeModifierMap.MutableAttribute setCustomAttributes() { return MobEntity.createLivingAttributes() .add(Attributes.MAX_HEALTH, 10) .add(Attributes.MOVEMENT_SPEED, 0.2D) .add(Attributes.FOLLOW_RANGE, 10); } @Overide protected void registergoals () { super.registergoals() this.eatGrassGoal = new EatGrassGoal(this); this.goalSelector.addGoal(0, new SwimGoal(this)); this.goalSelector.addGoal(1, new PanicGoal(this, 1.25D)); this.goalSelector.addGoal(2, new BreedGoal(this, 1.0D)); this.goalSelector.addGoal(3, new TemptGoal(this, 1.1D, TEMPTATION_ITEMS, false)); this.goalSelector.addGoal(4, new FollowParentGoal(this, 1.1D)); this.goalSelector.addGoal(5, this.eatGrassGoal); this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 1.0D)); this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0F)); this.goalSelector.addGoal(8, new LookRandomlyGoal(this)); } // tmp sounds @Overide protected SoundEvent getAmbientSound() { return SoundEvents.ENTITY_PARROT_AMBIENT; } //tmp sounds @Override protected SoundEvent getDeathSound() { return SoundEvents.ENTITY_PARROT_DEATH; } @Nullable @Overide public AgableEnity createChild(AgeableEntity ageable){ return null; } }
currently it only walks around and only eats grass
How to make a mob rideable (1.1.6.5)
in Modder Support
Posted
ok thanks and for the people that want to copy paste here is the code