-
How do you make custom entities breed?
Gosh, I need to look at existing mob files more! Here's the function you need to add if you wish for your mobs to breed: public boolean isBreedingItem(ItemStack stack) { return TEMPTATION_ITEMS.test(stack); } Make sure that your TEMPTATION_ITEMS variable exists, and that it is an Ingredient object.
-
How do you make custom entities breed?
I have also added a BreedGoal, but this also does not allow my mob to breed.
-
How do you make custom entities breed?
I have added the temptation items and created a createChild function successfully, but I still do not know how to implement the breeding functionality within my animal entity class. Are there any resources that you can point me to? Much appreciated!
-
Adding lore to items in 1.16
@Draco18s I understand. Have a good day, and thank you for giving the time to help me! I'll just post the working code here just to help any future users that happend to stumble across this thread: @Override public void addInformation(ItemStack stack, World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn) { super.addInformation(stack, worldIn, tooltip, flagIn); tooltip.add(ITextComponent.func_241827_a_("'Lore'em Ipsum! Ha!")); }
-
Adding lore to items in 1.16
@Draco18s I see what I did wrong. I was getting stuck on a part where I was trying to convert the String into a ITextComponent object, but it turns out that the inbuilt "func_241827_a_" function already did that. A bit of an odd naming scheme, but I like it! LOL.
-
Adding lore to items in 1.16
When trying to define an addInformation function to add lore to my custom item, the IDE is telling me that I am not overriding a method from it's superclass. Am I doing something wrong? My function: @Override public void addInformation(ItemStack stack, PlayerEntity player, List list, boolean check) { list.add("Lorem ipsum for your troubled soul:"); }
-
Give player permission to fly
@Beethoven92 how would you set the flight to false once the player takes off the chestpiece that applied this? thanks so much for your help by the way!
-
Give player permission to fly
@Beethoven92 holy crud thank you so much! I have been searching in every nook and cranny of these forums, but I couldnt for the life of me find where that went!
-
PandaTobi joined the community
-
Give player permission to fly
Is there a way to do the equivalent of `player.capabilities.allowFlying = true;` in the 1.16 version of Forge?
IPS spam blocked by CleanTalk.