Started by
Minecrafter99
on
Topic category: Help with Minecraft modding (Java Edition)
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
Try just using /execute [player] /summon [entity] ~ ~ ~
You can use join blocks and NBT tags
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
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.)
get X/Y/Z Coordinates of target entity