Help with pre-enchanted armor, sword and hoe !!!

Started by Maxmos on

Topic category: Advanced modding

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help with pre-enchanted armor, sword and hoe !!!
Sat, 08/11/2018 - 13:58 (edited)

Hey there ! So just like the titles says, i need help with pre enchants, i want these to be visible in creative too ! (Edit: of course i do know i can get the enchants using crafts but once again i want em to be visible in creative)

I need fire aspect 2 on my sword, fire protection V on every armor pieces and mending on my hoe !

Sorry if this seems complicated it's just that i've been trying many things for days and haven't found anything that could work, hope you'll be able to help me ^^

To be fast i'll just put my 3 classes right here:

Sword: https://pastebin.com/wzK2zKiV

Armor: https://pastebin.com/px6ZkRUW

Hoe: https://pastebin.com/nE29e5Hr

Edited by Maxmos on Sat, 08/11/2018 - 13:58
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you could add the…
Fri, 08/10/2018 - 23:13

Maybe you could add the echantment when the item is crafted  ¯\_(ツ)_/¯

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Of course I did that I just…
Sat, 08/11/2018 - 13:57

Of course I did that I just want it to be visible in creative mode I've already said it...

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Override Item#getSubItems()…
Sat, 08/11/2018 - 14:36

Override Item#getSubItems(). You can add enchants, NBT, etc... using this method to the ItemStack displayed in creative tabs.

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So basically what do I write…
Sat, 08/11/2018 - 19:34

So basically what do I write where ? Like the sword for example (sry I'm new to this kind of stuff so I don't really know what and where to add these lines)