Date: 2015/11/22 21:47:51 UTC-08:00
Type: Denizen Script
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>