Paste #4522: Untitled Paste

Date: 2014/05/23 19:52:35 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


RunningShoesItem: 
  type: item 
  material: i@leather_boots
  display name: <&3>Running Shoes 
  lore: 
  - <&3>Run like you stole something.
  enchantments:
  recipe: 
  - i@air|i@air|i@air 
  - i@air|i@air|i@air 
  - i@redstone|i@leather_boots|i@redstone 
  no_id: true 
  bound: false
  color: c@185,25,25

RunningShoesEquip:
  Type: World
  Events:
    on player right clicks with i@RunningShoesItem:
      - give <player.equipment.boots> qty:1
      - equip boots:i@RunningShoesItem
      - take <context.item> qty:1
      - run script:RunningShoes p:Check

RunningShoes:
  Type: Task

  Check:
    - if <player.equipment.boots> == i@RunningShoesItem {
      - run script:RunningShoes p:Effect
      } 
      else {
      - narrate "You have taken off your Running Shoes"
      - cast speed remove
      }

  Effect:
    - playeffect <player.location> CLOUD qty:100
    - cast speed duration:15s power:1
    - run script:RunningShoes p:Check delay:9s