r/MinecraftCommands • u/Basic-Ad954 Command Block Noob HELPPP • 16d ago
Help | Java 26.3 use a cushion to set off a command?
heya, im trying to make a command block go off and trigger another one when a player sits on a cushion, but im having trouble figuring out how to get the command block to pay attention to the cushion, never mind to recognize when its in use. my best guess so far was
/execute if block 170 93 179 #minecraft:cushion_uses_collision_shapebut being on the block and using the cushion both dont trigger the command. beyond that, i have no idea what uses_collision_shape is (both sitting and breaking it failed to do anything), but i cant find anything else with "cushion" in it, because it's an entity, not a block.
i cant get this command block to give off so much as a signal. if you have any ideas, please help!
3
u/GalSergey Datapack Experienced 16d ago
The pillow is an entity, not a block, so checking the block tag won't help you in any way. If you want to check that the player is sitting on any cushion, then you can use something like this predicate:
1
u/Sma11ButHappy best Minecraft Bedrock commander! 16d ago
a cushion is an entity you could maybe do that. im not to the best at java commands.