This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I have been trying to add enchantments to custom crafting in the same type way it can be done with villagers. Not even sure this is even possible yet.
This is first code I tried It gives the pickaxe but no enchantments.
{{ "type": "crafting_shaped", "pattern": [ "#N#", "NDN", "#N#" ], "key": { "#": { "item": "minecraft:enchanting_table" }, "N": { "item": "minecraft:nether_star" }, "D": { "item": "minecraft:diamond_pickaxe" } }, "result": { "item": "minecraft:diamond_pickaxe", "ench": "[{id:70,lvl:1},{id:32,lvl:100},{id:33,lvl:1},{id:34,lvl:10}]", "count": 1 }}
Second code i tried using the same code that works in 1.13 with the /give command. But this one gives me a error. So i know this is completely wrong in some way.
{ "type": "crafting_shaped", "pattern": [ "#N#", "NDN", "#N#" ], "key": { "#": { "item": "minecraft:enchanting_table" }, "N": { "item": "minecraft:nether_star" }, "D": { "item": "minecraft:diamond_pickaxe" } }, "result": { "item": "minecraft:diamond_pickaxe{ench:[{id:70,lvl:1},{id:32,lvl:100},{id:33,lvl:1},{id:34,lvl:10}]}", "count": 1 } }
So is there actually to get this to work?
Also I think we need a data pack section in the forums.
I have been trying to add enchantments to custom crafting in the same type way it can be done with villagers. Not even sure this is even possible yet.
This is first code I tried It gives the pickaxe but no enchantments.
{{ "type": "crafting_shaped", "pattern": [ "#N#", "NDN", "#N#" ], "key": { "#": { "item": "minecraft:enchanting_table" }, "N": { "item": "minecraft:nether_star" }, "D": { "item": "minecraft:diamond_pickaxe" } }, "result": { "item": "minecraft:diamond_pickaxe", "ench": "[{id:70,lvl:1},{id:32,lvl:100},{id:33,lvl:1},{id:34,lvl:10}]", "count": 1 }}Second code i tried using the same code that works in 1.13 with the /give command. But this one gives me a error. So i know this is completely wrong in some way.
{ "type": "crafting_shaped", "pattern": [ "#N#", "NDN", "#N#" ], "key": { "#": { "item": "minecraft:enchanting_table" }, "N": { "item": "minecraft:nether_star" }, "D": { "item": "minecraft:diamond_pickaxe" } }, "result": { "item": "minecraft:diamond_pickaxe{ench:[{id:70,lvl:1},{id:32,lvl:100},{id:33,lvl:1},{id:34,lvl:10}]}", "count": 1 } }So is there actually to get this to work?
Also I think we need a data pack section in the forums.