Date: 2016/05/03 15:02:28 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
test_inventory:
type: inventory
title: Test inventory
size: 27
slots:
- "[i@Jabuka] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [] [] [] [] [] []"
Inventory:
type: inventory
title: Inv2
size: 27
slots:
- "[] [] [] [] [] [] [] [] []"
- "[] [] [] [i@Accept] [] [i@Prekini] [] [] []"
- "[] [] [] [] [] [] [] [] []"
Jabuka:
type: item
material: apple
display name : APPLLE
lore:
- <gold>A tasty apple!
- <gold>Price 5 gold.
- <gold>Quantity 1
Accept:
type: item
material: green_wool
display name: Buy
lore:
- <gold>Want to buy it?
Prekini:
type: item
material: red_wool
display name: Exit
lore:
- <gold>Cancel
Inventory_opener:
type: world
events:
on player right clicks at entity:
- inventory open d:in@test_inventory
on player clicks in test_inventory:
- determine canceled
on player drags in test_inventory:
- determine canceled
on player clicks Jabuka in test_inventory:
- inventory open d:in@Inventory
on player clicks in Inventory:
- determine canceled
on player drags in Inventory:
- determine canceled
on player clicks Accept in Inventory:
- narrate 'KUPIO SI JABUKU, DERP'
- inventory open d:in@test_inventory
on player clicks Prekini in Inventory:
- inventory open d:in@test_inventory