Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.12.x] Crafting result with enchantments


Razor
 Share

Recommended Posts

not sure if you can do in the json. With loot you can add a function to enchant.

 

But with crafting items, you can override the onCreated(ItemStack,World, EntityPlayer).  Apply the enchantment to the item stack. stack.addEnchantment(Enchantment, level)

 

 

Link to comment
Share on other sites

13 hours ago, aw_wolfe said:

But with crafting items, you can override the onCreated(ItemStack,World, EntityPlayer)

That's not nice, since the enchantment will not be visible in the preview of the crafting result.

 

You need a custom IRecipe class, preferably extending ShapedRecipes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.