Started by
Maxmos
on
Topic category: Advanced modding
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
Edited by Maxmos on Sat, 08/11/2018 - 13:58
Maybe you could add the echantment when the item is crafted ¯\_(ツ)_/¯
Of course I did that I just want it to be visible in creative mode I've already said it...
Override Item#getSubItems(). You can add enchants, NBT, etc... using this method to the ItemStack displayed in creative tabs.
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)