How do I /tellraw the location of an arrow?

How do I /tellraw the location of an arrow? - From above of signboard showing direction of plantation with various sorts of pepper placed in green farm on sunny day

I'm pretty new to NBT tags so there's a good chance this is a simple mistake, but I'm trying to tell the nearest player the XYZ location of an arrow that has hit the ground, currently I've got this running in a repeating command block:

execute as @e[type=minecraft:arrow , nbt={inGround:1b}] run tellraw @p {"nbt" : "" , "entity" : "@e[type=minecraft:arrow , nbt=inGround:1b]"}

This just prints a blank message at me. It would be good if after this prints a second command block then kills that arrow but I don't even know where to begin with that.

Also, if anyone has any good resources on this topic, I would greatly appreciate it, there is very little good documentation that I've found.

I'm using Minecraft JE 1.16.






Pictures about "How do I /tellraw the location of an arrow?"

How do I /tellraw the location of an arrow? - Wooden sign on pole in forest
How do I /tellraw the location of an arrow? - Rough rocky cliff slope with blue arrow sign with inscription in Romanian language guiding to right
How do I /tellraw the location of an arrow? - Picturesque scenery of silhouette of Pico do Jaragua mountain with TV towers located in Sao Paulo against sunset sky



What is the Tellraw command in Minecraft?

You can use the /tellraw command to send a private JSON message to a player or group of players in Minecraft. This function allows you to format color, bold and italics for the message.

How do I use Tellraw command on bedrock?

Use '\\n' to insert a new line:
  • /tellraw @a "Text1\\nText2" \u200c [JavaEditiononly]
  • /tellraw @a {"rawtext":[{"text":"Text1\\nText2"}]} \u200c [BedrockEditiononly]


  • Does the direction of a command block matter?

    Command blocks always point towards you, and if the arrows are pointing in the wrong directions, the command won't run.

    What is a JSON message in Minecraft?

    28:07. Raw JSON text is the format Minecraft uses to send and display rich text to players. It can also be sent by players themselves using commands and data packs. Raw JSON text is written in JSON, a human-readable data format.



    Tellraw Tutorial - Colors, hover options, click options and more!




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Zen Chung, Erik Mclean, Dids, sergio souza