Paste #43591: Untitled Paste

Date: 2017/08/17 14:04:07 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


"NoSpawnersForYou":
    type: world
    events:
        on entity spawns:
        - if <context.entity.is_player>
        {
            - queue clear
        }
        - if '<context.reason>' == 'SPAWNER'
        {
#            - wait 1t
            - flag '<context.entity>' 'is_spawned.spawner'
        }
        - if <context.location.find.blocks[mob_spawner].within[8].size> >= 0
        {
#            - wait 1t
            - flag '<context.entity>' 'is_spawned.spawner'
        }
        on entity dies:
        - if <context.entity.is_player>
        {
            - queue clear
        }
        - if <context.entity.has_flag[is_spawned.spawner]>
        {
            - announce to_console "Debug message normal mobs spawner"
            - determine NO_DROPS_OR_XP
        }

        on mm denizen death:
#        - if <context.activemob.entity.is_player>
#        {
#            - queue clear
#        }
        - if '<context.activemob.entity.has_flag[is_spawned.spawner]>'
        {
            - announce to_console "Debug message mythicmobs spawner"
            - determine drops:li@;money:0;exp:0
        }