Solved Show nbt and metadata

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MrNygus

Active Member
Jan 28, 2017
116
2
18
Hello I want to loop all entities and blocks around me and show on chat their nbt.
Example /shownbt armor_stand 10 - that will show nbt and all metadata of this objects - around 10 blocks
Code:
command /shownbt <number>:
    trigger:
        nearestEntity(player, arg-1)

function nearestEntity(player: player, blocks: number):
    loop entities around {_blocks} blocks of {_player}:
        loop-entity is armor stand
        set {_nbt} to nbt of loop-entity
        send "{_nbt}" to {_player}
I have error with loop entities around {_blocks} blocks of {_player}:
 
Last edited:
Status
Not open for further replies.