Date: 2018/06/06 07:59:43 UTC-07:00
Type: Denizen Script
police cuffs Handler:
type: world
events:
# Check for the player right clicking entities with the baby_wand item
on player right clicks entity with hand_cuffs:
# Play an effect, and run the age command on the entity
- execute as_server "cmi cuff <c.entity> true"
- wait 5s
- execute as_server "cmi cuff <context.entity> false"
- execute as_server "warp escapeme <context.entity>"
# ...and again for the aged_wand item
on player right clicks entity with aged_wand:
- playeffect <c.entity.location> effect:mob_spell quantity:200 data:0 offset:0.5
- age <c.entity>
# Build item script containers
baby_wand:
type: item
material: iron_ingot
display name: &4Hand cuffs
lore:
- "Take them to jail."
aged_wand:
type: item
material: bone
display name: an aged wand
lore:
- "This wand reeks of old age."