Date: 2015/11/04 21:22:23 UTC-08: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
CommandItemConfig:
type: yaml data
commandItems:
371:
0:
name: "Shiny Coin"
lore: "Test|Test"
command: eco give <player.name> 10
348:
0:
name: "Pile of Coins"
lore: "Test|Test"
command: eco give <player.name> 100
388:
0:
name: "Emerald Coin"
lore: "Test|Test"
command: eco give <player.name> 1000
410:
0:
name: "Diamond Coins"
lore: "Test|Test"
command: eco give <player.name> 10000
399:
0:
name: "Asterism"
lore: "Test|Test"
command: eco give <player.name> 100000
CommandItem:
type: world
events:
On Player Right Clicks With Item:
- define commandItemName <s@CommandItemConfig.yaml_key[commandItems.<context.item.id>.<context.item.data>.name]>
- narrate "<parse:<def[commandItemName]>.is[==].to[<context.item.display.substring[3]>]>"
- if "<parse:<def[commandItemName]>.is[==].to[<context.item.display.substring[3]>]>" {
- narrate "Yes"
}