Jump to content

ihavenoidea

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by ihavenoidea

  1. Oh ok, I missed that class so many times and now I see how you are meant to initialize swords, thanks for telling me that.
  2. Thanks for the tip, I also just tried looking at vanilla code and looking at Patty's More Stuff mod, but they used some custom features that they made themselves.
  3. Since that didn't help, I decided to put Item.Properties() and the Item properties and my IDE doesn't give me any errors so I'll see if it works when I run Minecraft.
  4. The answer is probably super obvious but how do I make a custom sword for Minecraft 1.15.2? I have most the code written out but I need help with one part of it. Here's my code: public static final RegistryObject<Item> KNIFE = ITEMS.register("knife", () -> new SwordItem(ItemTier.IRON, 4, 1.3F, )); It tells me I need to put an Item.Properties builder but I don't know how to do that, and yes I did try and learn some Java (it was a Codecademy course). So what am I meant to put after 1.3F (which is the sword attack speed)?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.