1

Need help concerning execute commands.

Tehmo 1/6/18 8:32 pm
198
1/8/2018 9:17 pm
I've made this command

execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:diamond_block 0 spawnpoint @p'

and I want to make it so that it won't detect the nearest player; rather, it will detect whoever is on the diamond block. The problem with this command is that whoever is near the command block receives the target and I want it to target the player on the diamond block. Is there any way to do this?
Posted by
Tehmo
Level 1 : New Miner
0

  Have something to say?

JoinSign in

2

ShelLuser
01/07/2018 6:45 am
Level 61 : High Grandmaster System
Use @s:

/execute @p ~ ~ ~ detect ~ ~-1 ~ minecraft:diamond_block 0 spawnpoint @s
1
Tehmo
01/08/2018 9:17 pm
Level 1 : New Miner
Thank you so much!
1

Welcome