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
I have error with loop entities around {_blocks} blocks of {_player}:
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}
Last edited: