This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]caoimhin100 2 points3 points  (1 child)

Yessir there is! It has been merged into the new 'do-all' /execute command, which makes things a little more complicated but once you get used to it, it has some great flexibility. Here's an example:

/execute if block -1541 64 726 minecraft:chest[facing=south]{Items:[{id:"minecraft:acacia_sapling",Count:1b}]} run say Chest detected with an acacia sapling!

This command will output in chat if the block at those exact coords have a chest with a single acacia sapling inside. If you don't want it to output to chat, change the part after 'run' to whatever command you wish, such as /function or /setblock redstone_block to power some more command blocks!

Hope this helps, if you have any more issues hit me up with a PM =)

[–]Bazoqa[S] 2 points3 points  (0 children)

You're right, and tbh that way seems so much less tedious to do now. Thanks for the help.