Paste #22947: Untitled Paste

Date: 2015/11/22 21:47:51 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12


Mob Spawner Type:
  type: world
  events:
    on player breaks mob_spawner:
    - determine passively cancelled
    - drop "item:i@mob_spawner[lore=Type<&co> <context.location.spawner_type.entity_type>]" <context.location>
    - modifyblock m@air <context.location>
    on player places mob_spawner:
    - define Item <player.item_in_hand>
    - define Type <def[Item].lore.get[1].after[Type<&co>].trim||pig>
    - wait 1t
    - adjust <context.location> spawner_type:<def[Type].as_entity>