Paste #8349: Edit of P#8348 - How do I allow this script to run multiple times with no errors

Date: 2014/08/13 12:50:30 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11


Joe30s:
  type: world
  events:
    on test command:
    - announce "meow"
    - create spider Joe <player.location> save:myNPC
    - execute as_server 'npc sel <entry[MyNPC].created_npc.id>'
    - execute as_server 'trait sentry'
    - execute as_server 'sentry target add entity:owner'  
    - wait 30s
    - remove <entry[myNPC].created_npc.id>