-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
1.10.2 How to make mobs naturally regenerate health.
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
No Entity besides the Player and the Wither naturally regen as far as I know, so try those. -
1.10.2 How to make mobs naturally regenerate health.
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
Override the update/updateEntity method and give it some health back every so often. -
1.10.2 how is crafting recipes handled for shears
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
ToolMaterial for Tools and ArmorMaterial for armor -
1.10.2 how is crafting recipes handled for shears
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
net.minecraft.item.crafting -
1.10.2 how is crafting recipes handled for shears
Animefan8888 replied to TheRPGAdventurer's topic in Modder Support
It is added on line 29 of RecipesTools.class, which is added on line 42 of the CraftingManager.class. -
[1.12] Minecraft creating and registering items and blocks
Animefan8888 replied to Chuckinator's topic in Modder Support
For simple Blocks and Items you just need to call ModelLoader.setCustomModelResourceLocation(Item, meta(typically 0, unless you are making a metadata item), ModelResourceLocation). You can get the ModelResourceLocation by creating a new instance and passing in your items registry name and the second parameter as "inventory" -
Ok, that is fine then you should know what a NullPointerException is. Look at the crash report where the error is printed it will be towards the bottom. It will point you towards the line that is making the error.
-
What is your experience level with Java?
-
If you do not know much Java then I suggest you learn before continuing, and if you do this could be really easy. You have to save the contents of your List to the Drive of your computer. Whether this is in a text file or an NBT file. You will want to use the WorldSavedData along with some events to read and write the data.
-
Then do you have permission to use their code?
-
Did you change any code in your Gui at all?
-
What is line 73 of your Gui now?
-
The null variable is "sneakysal". Gui#initGui is called in the Gui classes constructor which gets called before your constructor and therefore it is not initialized. To fix this you can add a != null check and call Gui#initGui in your Guis constructor.
-
What is line 72?
-
Something is null on line 72 of your Gui.
-
[1.12] Add custom nbt tags to vanilla mobs.
Animefan8888 replied to _Bedrockbreaker_'s topic in Modder Support
Use a Entity Capability see here EntityOcelot.isTamed() Just cancel the event. Subscribe to the RenderLivingEvent(s) cancel the Pre event and Render your new Model in the Post event. At least I believe that is the way to do it. -
You will need to make a custom IRecipe implementation. You should look at the ItemArmor for how the LeatherArmor texture works.
-
Sadly you cannot place a TileEntity on a vanilla block that doesn't already have a TileEntity. But you can store a Map of BlockPos as the Key and a List of BlockPos as the value and cross reference the lists contained in the Map in the PlayerInteractEvent.RightClickBlock. And if it is in a List perform the action you want for the TileEntity at the key BlockPos.
-
[1.11.2] (UNSOLVED) Anyone know to give a weapon custom damage?
Animefan8888 replied to BlockExpert's topic in Modder Support
What do you mean custom damage type? -
[Solved] First Subitem in a block have no Inventory Render
Animefan8888 replied to Asiratlan's topic in Modder Support
Don't use the ItemModelMesher instead use ModelLoader.setCustomModelResourceLocation, and call in in preInit or the ModelRegistryEvent. -
[Solved] First Subitem in a block have no Inventory Render
Animefan8888 replied to Asiratlan's topic in Modder Support
Then the problem could still be the Item Model for metadata 1. Also we can't help without any code or the models, if we tried it would be a bunch of shots in the dark. -
[Solved] First Subitem in a block have no Inventory Render
Animefan8888 replied to Asiratlan's topic in Modder Support
Do you have an Item model for it? -
[1.12] How to get crafting result from a custom crafting table?
Animefan8888 replied to ctbe's topic in Modder Support
Yes they will be craftable as long as they are not bigger than a 3x3. -
Any accessing of a Block or TileEntity will require a world to load the chunk.