How to get loop-entity on skript 1.14.4?

  • 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 comminuty!

    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.

pepper82

Member
Jan 26, 2017
272
1
18
41
Hi all,

this works fine with 1.13.2 but not longer in 1.14.4:

Code:
command /testi [<text>]:
    trigger:
        loop all entities in radius 3 around player's location:
            if loop-entity is armor stand:
                message "%loop-entity%"

I need to get the loop-entity (need to set it to a variable). Full script:
Code:
                loop all armor stands in radius 1 around player's location:
                    set {_s} to loop-entity
                    if tag "ShowArms" of nbt of loop-entity is set:
                        set {_tag} to tag "ShowArms" of nbt of loop-entity
                        if {_tag} is not 1:
                            play "entity_wither_ambient" to player at volume 0.8 with pitch 1.7
                            drawCylinder particle "flame", center location of loop-entity, id "%player%", randomRotation true, isSolid true, radius 1, density 100, height 3, sideRatio 0, visibleRange 30       
                            add "{ShowArms:1}" to nbt of {_s}
                            remove 1 of tool from tool
                            wait 1 second
                            stopeffect "%player%"
                            stop
 
Status
Not open for further replies.