October 15, 20204 yr By "doesn't burn" do you mean that it does not provide fuel for a furnace? Because that's automatic. Or do you mean that when dropped into the world it isn't destroyed by fire or lava? Or do you mean something else? Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 20, 20204 yr Author I want the item to not burn if it is dropped in fire or lava. (sorry for responding late) Edited October 20, 20204 yr by someRandomKid
October 20, 20204 yr You need a custom ItemEntity to accomplish that. Then you need to detect ItemEntities joining the world, check that their item is your item (and not your custom ItemEntity), and replace it. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 20, 20204 yr 57 minutes ago, diesieben07 said: Not needed. Just override hasCustomEntity and createEntity in the item class. I didn't realize these methods existed. 👍 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 20, 20204 yr 24 minutes ago, poopoodice said: How about isBurnable() in Item.java? That's furnace fuel stuff. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 20, 20204 yr 42 minutes ago, Draco18s said: That's furnace fuel stuff. Isn't fuel stuff handled through getBurnTime ?
October 24, 20204 yr Author Quote Not needed. Just override hasCustomEntity and createEntity in the item class. works with those overrides, but since I am not in 1.16, my item sinks in lava, how do I fix this? Edited October 24, 20204 yr by someRandomKid
October 24, 20204 yr Take a look at the tick method of the ItemEntity class...there you can see how vanilla makes item entities float when in water. Apply the same concept when checking if your item entity is in lava. Check out the port of the BetterEnd fabric mod (WIP): https://www.curseforge.com/minecraft/mc-mods/betterend-forge-port
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.