Hi, I was messing around with some command blocks and tried to create a compressing system which compresses basic materials such as wood, cobble and stone to create a command block mod. However, i can't wrap my head wrap my head around this command which isn't working.
It's a command with takes some items inside a hopper and clearing it, changing it into another item.
Hi, I was messing around with some command blocks and tried to create a compressing system which compresses basic materials such as wood, cobble and stone to create a command block mod. However, i can't wrap my head wrap my head around this command which isn't working.
It's a command with takes some items inside a hopper and clearing it, changing it into another item.
Hi, I was messing around with some command blocks and tried to create a compressing system which compresses basic materials such as wood, cobble and stone to create a command block mod. However, i can't wrap my head wrap my head around this command which isn't working.
It's a command with takes some items inside a hopper and clearing it, changing it into another item.
Command:
Command 1: (Repeating Command Block)
Command 2: (Chain Command Block (Conditional))
Command 3: (Chain Command Block (Conditional))
Command 4: (Chain Command Block) (THE NOT WORKING ONE)
The Error:
Failed to execute 'testforblock ~ ~ ~ hopper 0 {Items:[{Slot:0,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{ench:[{id:0,lvl:5}]}}},{Slot:1,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}},{Slot:2,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}},{Slot:3,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}},{Slot:4,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}}]}' as Compressor
/execute @e[type=bat,tag=Compressor] ~ ~ ~ testforblock ~ ~ ~ hopper 0 {Items:[{Slot:0,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{ench:[{id:0,lvl:5}]}}},{Slot:1,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}},{Slot:2,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}},{Slot:3,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}},{Slot:4,id:"minecraft:stonebrick",Damage:2,Count:64b,tag:{display:{display:{ench:[{id:0,lvl:5}]}}}}]}
Command 5: (Chain Command Block (Conditional))
Command 6: (Chain Command Block (Conditional))
Hope someone can help fix it. BTW, the @e[type=Bat,tag=Compressor] is inside the hopper.
Do you think Damage:2s is important?
If not, do you think there's a duplicated display:{ in slot 1 to slot 4 of the failing command?
ok, tysm, changed the command to:
/execute @e[type=bat,tag=Compressor] ~ ~ ~ testforblock ~ ~ ~ hopper 0 {Items:[{Slot:0b,id:"minecraft:stonebrick",Damage:2s,Count:64b,tag:{ench:[{id:0,lvl:5}]}},{Slot:1b,id:"minecraft:stonebrick",Damage:2s,Count:64b,tag:{ench:[{id:0,lvl:5}]}},{Slot:2b,id:"minecraft:stonebrick",Damage:2s,Count:64b,tag:{ench:[{id:0,lvl:5}]}},{Slot:3b,id:"minecraft:stonebrick",Damage:2s,Count:64b,tag:{ench:[{id:0,lvl:5}]}},{Slot:4b,id:"minecraft:stonebrick",Damage:2s,Count:64b,tag:{ench:[{id:0,lvl:5}]}}]}
and it finally worked