You are browsing as a guest.
Login | Register
~ mcmonkey's simpler pastebin ~ Inspired by Hastebin ~ home page ~ Denizen help ~
click to use the normal pastebin instead ~ Click to make your own paste ~ click to duplicate and edit this paste


Title:
Type:
Date:
By:
Raw:
Other:
...
1
2
3
4
5
6
7
8
9
10
11
12
13
1300

Untitled Paste
Denizen Script
2016/03/27 14:18:08 UTC-07:00
Guest
Click here to view this paste as a raw text file | Or download the script


        on system time minutely:
            # check if its night time
            - if !<w@world.time.period.is[==].to[night]> clear queue
            # get a list of online players who 
            # are on the DQ_KillZombies quest
            - define viablePlayers '<server.list_online_players.filter[flag[DQCurrent].is[==].to[s@DQ_KillZombies]]||li@>' 
            # if that list is empty, abort.
            - if <def[viablePlayers].is_empty> queue clear
            # for each player spawn 1-3 zombies near them
            - foreach %viablePlayers% {
              - spawn e@redzombie <def[value].location.find.surface_blocks.within[25].filter[add[0,2,0].material.name.is[==].to[air]].random.add[0,1,0]> 
            }