command creation: floor crafting help

command creation: floor crafting help - From above of gray haired male master and boy sitting on floor while weaving cages in workshop

I'm making a command creation and in the third command block something is wrong

/scoreboard players tag @e[type=Item] add ink {Item:{id:"minecraft:dye",Damage:0s,Count:5b},OnGround:1b}

/scoreboard players tag @e[type=Item] add diamond {Item:{id:"minecraft:diamond",Damage:0s,Count:4b},OnGround:1b}

/execute @e[tag=ink] ~ ~ ~ /execute @e[tag=diamond,r=1] ~ ~ ~ /summon Item ~ ~1 ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:"Morph Crafting"},EntityTag:{id:"Squid",CustomName:"Barbed Wire",Tags:["killitem"]}}}}

/execute @e[tag=killitem] ~ ~ ~ /kill @e[tag=diamond,r=1,c=1]

/execute @e[tag=killitem] ~ ~ ~ /kill @e[tag=ink,r=1,c=1]


Best Answer

You've set the Tags list as part of the squid's data for the spawn egg rather than the data for the item entity, resulting in no entities with a "killitem" tag existing (until the player uses the spawn egg). The fix is to just move the list over.

/execute @e[tag=ink] ~ ~ ~ /execute @e[tag=diamond,r=1] ~ ~ ~ /summon Item ~ ~1 ~ {Item:{id:minecraft:spawn_egg,Count:1b,tag:{ench:[],display:{Name:"Morph Crafting"},EntityTag:{id:"Squid",CustomName:"Barbed Wire"}}},Tags:["killitem"]}



Pictures about "command creation: floor crafting help"

command creation: floor crafting help - African American man in casual wear and eyewear sitting on floor and playing with kids with curly hair
command creation: floor crafting help - Young ethnic female ballet dancer helping pupil to stretch with raised arm while practicing in dancing hall
command creation: floor crafting help - Energy practitioner healing relaxed woman on yoga mat





MCPE | Floor Crafting Tutorial (Command Blocks)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Quang Nguyen Vinh, Ketut Subiyanto, Budgeron Bach, Arina Krasnikova