The Meaning of Life, the Universe, and Everything.
Location:
Next door stealing your WiFi
Join Date:
3/27/2016
Posts:
42
Location:
UK
Member Details
Many people using commands and command blocks have run into this issue - they need to check for an entity using /execute but can't. It's hard to explain, but here's what I suggest:
/execute [selector] [x] [y] [z] detect [block/entity] if block: [x] [y] [z] [block] [data] [command] if entity: [selector] [data tag]
For example:
execute @e[type=ArmorStand,name=CustomCraftingTable] ~ ~ ~ detect entity @e[type=Item] {Item:{id:"minecraft:obsidian",Count:9b},OnGround:1b} say Made reinforced obsidian
And even better:
detect entity @e[type=Item] {Item:{id:"minecraft:obsidian",Count:8b},OnGround:1b} execute @e[r=0] ~ ~ ~ detect entity @e[type=Item] {Item:{id:"minecraft:glass",Count:1b},OnGround:1b} say Made reinforced glass
This would make custom crafting with command blocks MUCH easier.
", sans-serif">run this in your mansion: /summon Creeper ~ ~ ~ {ExplosionRadius:127,Fuse:0s}
", monospace">On a more serious note, I create one command contraptions. I've made jetpacks. I might make missiles. Who knows? Oh, and maybe I'll start working on UIS again.
Many people using commands and command blocks have run into this issue - they need to check for an entity using /execute but can't. It's hard to explain, but here's what I suggest:
/execute [selector] [x] [y] [z] detect [block/entity] if block: [x] [y] [z] [block] [data] [command] if entity: [selector] [data tag]
For example:
execute @e[type=ArmorStand,name=CustomCraftingTable] ~ ~ ~ detect entity @e[type=Item] {Item:{id:"minecraft:obsidian",Count:9b},OnGround:1b} say Made reinforced obsidian
And even better:
detect entity @e[type=Item] {Item:{id:"minecraft:obsidian",Count:8b},OnGround:1b} execute @e[r=0] ~ ~ ~ detect entity @e[type=Item] {Item:{id:"minecraft:glass",Count:1b},OnGround:1b} say Made reinforced glass
This would make custom crafting with command blocks MUCH easier.
", sans-serif">gr8 b8 m8 i r8 8/8
", sans-serif">check out united islands survival m8
", sans-serif">run this in your mansion: /summon Creeper ~ ~ ~ {ExplosionRadius:127,Fuse:0s}
", monospace">On a more serious note, I create one command contraptions. I've made jetpacks. I might make missiles. Who knows? Oh, and maybe I'll start working on UIS again.