1

Need help concerning execute commands.

1 emerald 2 replies 57 views | started 01/06/2018 8:32 pm by Tehmo
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 avatar
Tehmo
Level 1 : New Miner
0

2 replies

1
01/07/2018 6:45 am
Level 4 Apprentice Explorer
ShelLuser
avatar
Use @s:

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

Search

Browse

Site

© planetminecraft.com

Welcome