So, I've been wanting to implement custom crafting recipes into my singleplayer world, but the items I want to craft have heavy NBT Data and the custom crafting recipes in datapacks don't allow NBT Data usage in the codes. So, I'm looking for (what I believe to be) a more simple solution...
I'm looking for a way to detect a dropper with specific items in it, and once those specific items are placed into the dropper, the dropper would just be cloned to the dropper that has the item that I want to be crafted in it.
This use to be done in older versions of minecraft using testfor and cloning, but sadly the testfor command clearly doesn't exist in version 1.13 and I have no idea how to recreate a system like this.
If anyone would be able to help me out with this, it would be greatly appreciated!
Thank you!
((Also, all 9 dropper slots will have an item in it to craft the specific item))
Okay, so after lots and lots of experimenting and testing and switching things around, I have finally found a command string that will allow me to detect for certain blocks in a dropper, which can be specifically modified to what slot they are in and how many of each item is in each slot. The command is actually quite simple, it just took a lot of trial and error to finally narrow it down and figure it out. Here is my finished command:
/execute if block ~ ~1 ~ minecraft:dropper{Items:[{id:"minecraft:gold_block",Count:1b,Slot:0b},{id:"minecraft:gold_ingot",Count:1b,Slot:1b},{id:"minecraft:gold_block",Count:1b,Slot:2b},{id:"minecraft:diamond_pickaxe",Count:1b,Slot:3b},{id:"minecraft:golden_helmet",Count:1b,Slot:4b},{id:"minecraft:diamond_pickaxe",Count:1b,Slot:5b},{id:"minecraft:gold_block",Count:1b,Slot:6b},{id:"minecraft:gold_ingot",Count:1b,Slot:7b},{id:"minecraft:gold_block",Count:1b,Slot:8b}]} run clone ~-3 ~ ~ ~-3 ~ ~ ~ ~1 ~ replace
Obviously just put the item that you want to craft into the dropper being cloned, so that when you put the specific items in there, you get the new dropper that has want you want to be crafted in it, and you dont lose the dropper so you can keep crafting more things.
To add more crafting recipes, you just have to edit the placement and the items that are being detected in the dropper, and just make another dropper with the item you want to craft in it and make sure you clone that dropper and not another one with a different item in it.
I know a lot of people have been looking for custom dropper crafting recipes in 1.13.2 and I've done a lot of searching around for it myself, but haven't found any. As far as I know, this is the only solution there is to craft custom nbt items in vanilla Minecraft, so I really hope this helps some people out if they're looking for it!
Okay, so after lots and lots of experimenting and testing and switching things around, I have finally found a command string that will allow me to detect for certain blocks in a dropper, which can be specifically modified to what slot they are in and how many of each item is in each slot. The command is actually quite simple, it just took a lot of trial and error to finally narrow it down and figure it out. Here is my finished command:
/execute if block ~ ~1 ~ minecraft:dropper{Items:[{id:"minecraft:gold_block",Count:1b,Slot:0b},{id:"minecraft:gold_ingot",Count:1b,Slot:1b},{id:"minecraft:gold_block",Count:1b,Slot:2b},{id:"minecraft:diamond_pickaxe",Count:1b,Slot:3b},{id:"minecraft:golden_helmet",Count:1b,Slot:4b},{id:"minecraft:diamond_pickaxe",Count:1b,Slot:5b},{id:"minecraft:gold_block",Count:1b,Slot:6b},{id:"minecraft:gold_ingot",Count:1b,Slot:7b},{id:"minecraft:gold_block",Count:1b,Slot:8b}]} run clone ~-3 ~ ~ ~-3 ~ ~ ~ ~1 ~ replace
Obviously just put the item that you want to craft into the dropper being cloned, so that when you put the specific items in there, you get the new dropper that has want you want to be crafted in it, and you dont lose the dropper so you can keep crafting more things.
To add more crafting recipes, you just have to edit the placement and the items that are being detected in the dropper, and just make another dropper with the item you want to craft in it and make sure you clone that dropper and not another one with a different item in it.
I know a lot of people have been looking for custom dropper crafting recipes in 1.13.2 and I've done a lot of searching around for it myself, but haven't found any. As far as I know, this is the only solution there is to craft custom nbt items in vanilla Minecraft, so I really hope this helps some people out if they're looking for it!
Thank you and have a good day
That works, but you get out of the GUI when you craft something
So, I've been wanting to implement custom crafting recipes into my singleplayer world, but the items I want to craft have heavy NBT Data and the custom crafting recipes in datapacks don't allow NBT Data usage in the codes. So, I'm looking for (what I believe to be) a more simple solution...
I'm looking for a way to detect a dropper with specific items in it, and once those specific items are placed into the dropper, the dropper would just be cloned to the dropper that has the item that I want to be crafted in it.
This use to be done in older versions of minecraft using testfor and cloning, but sadly the testfor command clearly doesn't exist in version 1.13 and I have no idea how to recreate a system like this.
If anyone would be able to help me out with this, it would be greatly appreciated!
Thank you!
((Also, all 9 dropper slots will have an item in it to craft the specific item))
Okay, so after lots and lots of experimenting and testing and switching things around, I have finally found a command string that will allow me to detect for certain blocks in a dropper, which can be specifically modified to what slot they are in and how many of each item is in each slot. The command is actually quite simple, it just took a lot of trial and error to finally narrow it down and figure it out. Here is my finished command:
/execute if block ~ ~1 ~ minecraft:dropper{Items:[{id:"minecraft:gold_block",Count:1b,Slot:0b},{id:"minecraft:gold_ingot",Count:1b,Slot:1b},{id:"minecraft:gold_block",Count:1b,Slot:2b},{id:"minecraft:diamond_pickaxe",Count:1b,Slot:3b},{id:"minecraft:golden_helmet",Count:1b,Slot:4b},{id:"minecraft:diamond_pickaxe",Count:1b,Slot:5b},{id:"minecraft:gold_block",Count:1b,Slot:6b},{id:"minecraft:gold_ingot",Count:1b,Slot:7b},{id:"minecraft:gold_block",Count:1b,Slot:8b}]} run clone ~-3 ~ ~ ~-3 ~ ~ ~ ~1 ~ replace
Obviously just put the item that you want to craft into the dropper being cloned, so that when you put the specific items in there, you get the new dropper that has want you want to be crafted in it, and you dont lose the dropper so you can keep crafting more things.
To add more crafting recipes, you just have to edit the placement and the items that are being detected in the dropper, and just make another dropper with the item you want to craft in it and make sure you clone that dropper and not another one with a different item in it.
I know a lot of people have been looking for custom dropper crafting recipes in 1.13.2 and I've done a lot of searching around for it myself, but haven't found any. As far as I know, this is the only solution there is to craft custom nbt items in vanilla Minecraft, so I really hope this helps some people out if they're looking for it!
Thank you and have a good day
hi, do you know how to do it in 1.16 cuz it'd be really helpful
It's the same command. Commands haven't (barely) changed since 1.13
~Blue
lol, I made a data pack to make this easier
hi
That works, but you get out of the GUI when you craft something