how can i Get XYZ of player

Started by Minecrafter99 on Fri, 04/10/2020 - 16:03

Topic category: Help with modding (Java Edition)

Last seen on 17:47, 19. May 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how can i Get XYZ of player
Fri, 04/10/2020 - 16:03

Im making this block called annoying block, So when i click on it, it will ask for a target player. Then the name will be saved in a variable.

I would like to know how can i summon an entity or place a block to a specific player such as Steve,Alex (name entered in the GUI.) without know there XYZ  

 

Last seen on 12:50, 2. Aug 2021
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Try just using /execute …
Fri, 04/10/2020 - 18:52

Try just using /execute [player] /summon [entity] ~ ~ ~

You can use join blocks and NBT tags

Last seen on 17:47, 19. May 2021
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
what do you mean by: "…
Fri, 04/10/2020 - 23:06

what do you mean by: "/execute [player] /summon [entity] ~ ~ ~" ?  what i need is to place a block OR entity at such player without needing the XYZ of that player 

Last seen on 12:50, 2. Aug 2021
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Use the do command procedure…
Sat, 04/11/2020 - 09:03

Use the do command procedure block.Basically  it acts like it's the specified player, then it does the command that spawns an entity at same X same y same z. If you want a block, use /setblock ~ ~ ~ [block]

 

(Also, don't use the square brackets.)

Last seen on 18:33, 29. Jul 2021
Joined Apr 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
get X/Y/Z Coordinates of…
Thu, 05/07/2020 - 15:48

get X/Y/Z Coordinates of target entity