Hey guys,
good to be back to modding in Minecraft. I've thought of something that gives a permanent health boost after being used by the ordinary Minecraft player. Anyone has some advices or hints on doing so ?
So it's been a long time since I needed your help.
I've created an Enchantment which is called Devourer. I want my sword to have that enchant in creative inv and JEI. For that i will need to get the ID of that Enchantment. I've tried the getEnchantmentID(Enchantment) method but it returns actually nothing
Edit: I forgot to mention it's in 1.10.2
i've casted the heldItem variable now.
Now i need to cast the findBlock in a static field right ? but which static field and how ?
i know quartzOre is an undefined variable atm
My question now is how will i check for the tool the player is holding ? Can i use the EntityPlayer.getItemInUse Method or is it another method ?
Edit:
I've tried it like this. Could this work ?