Posted August 21, 20205 yr All tutorials I have found don’t work. What should the class include and what code is needed to make the firesword. Also, what do I need to do in my registry handler class to register it as a sword. (Fire sword meaning fire aspect)
August 21, 20205 yr 42 minutes ago, atmosaveer said: All tutorials I have found don’t work. What should the class include and what code is needed to make the firesword. Also, what do I need to do in my registry handler class to register it as a sword. (Fire sword meaning fire aspect) Make a sword, register using the methods in the docs, and have it enchant on recipe creation. Boom, fire sword. Also, if you're trying to directly copy and paste from someone elses work (who probably just stole from someone else), learn java before you start modding. Then, spend time actually understanding what you are writing.
August 21, 20205 yr Author I have been doing java for a year. I DO understand what I am writing, I just don’t know the methods and format used in Minecraft Modding. Also, I don’t want to enchant it. It shouldn’t show any enchantment.
August 21, 20205 yr 29 minutes ago, atmosaveer said: I have been doing java for a year. I DO understand what I am writing, I just don’t know the methods and format used in Minecraft Modding. Also, I don’t want to enchant it. It shouldn’t show any enchantment. Not a good idea to start a sentence off with all the tutorials don't work then. It implies that you are doing the try and true method of copy-paste. Also, you shouldn't mention fire aspect then since that's an enchantment. Otherwise, look at Item::hitEntity and Entity::setFire.
August 21, 20205 yr Author I have tried to do “set fire.” It works. However, mobs still DROP uncooked meat.
August 21, 20205 yr 15 minutes ago, atmosaveer said: I have tried to do “set fire.” It works. However, mobs still DROP uncooked meat. That's either a problem with loot tables (which is doubtful as it works fine) or you aren't setting the information on the server. You can even put a breakpoint at EntityFlagsPredicate::test to see if this is the case.
August 21, 20205 yr Sides are helpful and you will need to google how to add breakpoints in your specific IDE as I only know how for the ones I use.
August 21, 20205 yr Author Wait I tested flint and steel on a chicken and it dropped cooked loot. That means there isn’t a problem with the loot tables right? What should I do?
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.