Date: 2014/05/23 19:52:35 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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