trying to test something in regards to raid spawns and stuff, tried to make it so every raid member will set the block under him to diamond block and die.
instead of doing that, the command block sets the block under it (the command block itself) to diamond block.
heres the command ive been trying:
/execute as @e[type=#minecraft:raiders] run setblock ~ ~-1 ~ minecraft:diamond_block replace
i just cant figure out how to make the block do the command as the raider and not the command block... any help plz?