How to clear entity instead of kill (from list)?

  • 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
I have this script:

Code:
command /test:
   trigger:
       set {_loc} to player's location
       loop all entities in radius 30 around {_loc}:
           if loop-entity is a sheep:
               add loop-entity to {_list::*}
       loop {_list::*}:
           clear loop-value parsed as entity
       message "done"

It does not remove any entities. But "kill loop-value" works fine. Thing is I don't want to kill the entity, and instead just remove it. Any ideas?
 
What do you mean by "removing entity"?
In minecraft, if you want to remove an entity there is no other way then killing it.
 
I have this script:

Code:
command /test:
   trigger:
       set {_loc} to player's location
       loop all entities in radius 30 around {_loc}:
           if loop-entity is a sheep:
               add loop-entity to {_list::*}
       loop {_list::*}:
           clear loop-value parsed as entity
       message "done"

It does not remove any entities. But "kill loop-value" works fine. Thing is I don't want to kill the entity, and instead just remove it. Any ideas?
I think with this:
code_language.skript:
loop entities:
     delete loop-entity
 
Status
Not open for further replies.