1

Need help concerning execute commands.

Tehmo's Avatar Tehmo1/6/18 8:32 pm
1 emeralds 186 2
1/8/2018 9:17 pm
Tehmo's Avatar 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 Tehmo's Avatar
Tehmo
Level 1 : New Miner
0

Create an account or sign in to comment.

2

1
01/07/2018 6:45 am
Level 57 : Grandmaster Engineer
ShelLuser
ShelLuser's 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
Tehmo's Avatar
Thank you so much!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome