get ArmorStand customName from location [1.14.4]

Discussion in 'Skript' started by Aidan_13, Feb 22, 2020.

  1. Hi, I was wondering how can I get an ArmorStand's CustomName knowing only the world it is in and its coordinates? I'm running Spigot 1.14.4
     
  2. new Location(Bukkit.getWorld(worldName), x, y, z).getNearbyEntities() returns a list of nearby entities around that location
     
  3. this seems not to work
     
  4. Code? Cannot guess what's wrong
     
  5. Code (Text):
    loop all armor stands in radius 1 of {_location}:
      set {_tag} to tag "CustomName" of entity nbt of loop-entity
    requires sk-nbeet