1 - 11 of 11
/setblock ~ ~2 ~ minecraft:command_block 1 0 {Command:/setblock ~ ~ ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"ArmorStand",ShowArms:1,Small:1,Glowing:1b,HandItems:[{id:iron_sword,Count:1},{}],Pose:{RightArm:[-50f,90f,0f]}}}}
/scoreboard players add @e[type=Item] dropped 1 {Item:{id:"minecraft:crafting_table"},OnGround:1b}
/execute @e[score_dropped_min=1] ~ ~ ~ /setblock ~ ~ ~ dispenser 1
/execute @e[score_dropped_min=1] ~ ~ ~ /blockdata ~ ~ ~ {CustomName:hi}
/kill @e[score_dropped_min=1]
1] /scoreboard objectives add breaksea stat.mineBlock.minecraft.sea_lantern
2] /execute @p ~ ~-1 ~ detect ~ ~ ~ minecraft:ice 0 /say hi
/scoreboard players add @e[type=Item] dropped 1 {Item:{id:"minecraft:crafting_table"},OnGround:1b}
/execute @e[score_dropped_min=1] ~ ~ ~ /setblock ~ ~ ~ bedrock
/kill @e[score_dropped_min=1]
EnderCat17so i am trying make a custom crafting recipe but i was wondering if there was anyway to look if there is a named chest (or in my case a dispenser) with items in it?
thanks ~ EnderCat
/summon ArmorStand ~ ~ ~ {CustomName:customcraft,Invisible:1,Marker:1,Invulnerable:1,NoGravity:1}
/execute @e[name=customcraft] ~ ~-1 ~ detect ~ ~ ~ /testforblock ~ ~ ~ dispenser -1 {Items:[{id:minecraft:stick,Damage:0s,Slot:0b,Count:1b}]}
the best way to get this code is by placing a command block over the dispenser with this code /blockdata ~ ~-1 ~ {} then copy all the code place in the testforblock data spot/setblock ~ ~1 ~ minecraft:mob_spawner 0 replace {SpawnData:{id:"ArmorStand",ShowArms:1,Small:1,Glowing:1b,HandItems:[{id:iron_sword,Count:1},{}],Pose:{RightArm:[-50f,90f,0f]}}}
/summon ArmorStand ~ ~ ~ {CustomName:light,Invisible:1,Marker:1,Invulnerable:1,NoGravity:1}
/execute @e[name=light,type=ArmorStand] ~ ~ ~ /effect @e[type=!Player,r=8] slowness 1 255 true
/execute @e[name=light,type=ArmorStand] ~ ~ ~ /execute @a[rm=8,r=15] ~ ~ ~ /effect @e[type=!Player,r=9] slowness 0 0 true
/replaceitem entity @a[score_armor_min=1] slot.armor.feet air
1 - 11 of 11
© 2010 - 2024
www.planetminecraft.com