2
/execute from closest entity form player
I am making lucky blocks in Minecraft. All of it works except if you place multiple lucky blocks at once it opens them all at the exact same time and all of them are then the exact outcome.
I want to make it so it only opens the block closest to the player
Would i do it like
/execute @e[type=armor_stand,name=Chance,r-2] ~ ~ ~ /setblock ~ ~-1 ~ minecraft:dirt
??
I want to make it so it only opens the block closest to the player
This is an example of the current command
/execute @e[type=armor_stand,name=Chance] ~ ~ ~ /setblock ~ ~-1 ~ minecraft:dirt
/execute @e[type=armor_stand,name=Chance,r-2] ~ ~ ~ /setblock ~ ~-1 ~ minecraft:dirt
??
Create an account or sign in to comment.
2
1
execute @e[type=armor_stand,name=Chance,c=1] ~ ~ ~ setblock ~ ~-1 ~ minecraft:dirt
The "c=1" picks the closest one.
1
You could set a radius [r=1]
/execute @p ~ ~ ~ /kill @e[type=armor_stand,name=Chance,r=3]
I couldnt figure out how to setblock only how to kill or anything that affects the entity, I hope this helps!
/execute @p ~ ~ ~ /kill @e[type=armor_stand,name=Chance,r=3]
I couldnt figure out how to setblock only how to kill or anything that affects the entity, I hope this helps!