SHARE
TWEET

Untitled

a guest Apr 18th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. list.add(new MerchantRecipe(new ItemStack(JourneyItemsOther.EnchantedShard, 24), new ItemStack(this.getEnchantBook(Enchantment.sharpness,4), 1)));
  2.  
  3. private ItemStack getEnchantBook(Enchantment sharpness, int level){
  4.     Items enchanted_book = Items.enchanted_book;
  5.     Map<Integer, Integer> mapEnch = EnchantmentHelper.getEnchantments(enchanted_book );
  6.     mapEnch.add(sharpness.effectId, 4);
  7.  
  8.     EnchantmentHelper.setEnchantments(mapEnch, enchanted_book);
  9.  
  10.     return enchanted_book;
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top