I'm trying to create an RPG launcher kind of device to make a tutorial on for my YouTube channel. I am using crossbows and firework rockets and so far I have succeeded in having the firework rocket explode when flying above grass blocks. Is there any way to detect when the rocket flies into any block, rather than a particular block / category?
Minecraft – How to detect any block around an entity using the /execute command in Minecraft
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – Command block questions using the execute command
- Minecraft – Compact, failproof inexhaustible Elytra launcher
- Minecraft – How to detect a block in Minecraft from all sides using /execute and detect
- Minecraft execute command gives error message “Could not execute ”detect“ as Creeel”
- Minecraft – Teleporting entity through command block teleports entity to command block and stops moving, even with execute as
- Minecraft – How to detect if ANY block is broken using command blocks in Minecraft
Best Answer
Try the following:
Theoretically this should work, as
minecraft:air
is a block type, and should be detectable using the/execute
command.