Date: 2023/04/29 10:11:50 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
my_inventory:
type: inventory
inventory: chest
title: <&a>Hi!
slots:
- [] [] [] [] [] [] [] [] []
- [] [] [] [] [] [] [] [] []
- [b] [f] [f] [f] [f] [f] [f] [f] [r_a]
definitions:
b: back
r_a: right_arrow
f: filler
filler:
type: item
material: glass_pane
back:
type: item
material: oak_door
lore:
- <&7>Click to go back!
right_arrow:
type: item
material: arrow
lore:
- <&7>Click to go forward!
inventory_filler:
type: task
definitions: player|items
script:
- define inventory <inventory[my_inventory]>
- inventory set origin:<[items]> destination:<[inventory]>
- inventory open player:<[player]> destination:<[inventory]>
test_filler:
type: task
definitions: type
script:
- choose <[type]>:
- case 1:
- define items <list[<item[dirt]>|<item[acacia_boat]>|<item[polished_basalt]>]>
- case 2:
- define items <list[<item[acacia_pressure_plate]>|<item[oak_planks]>|<item[diamond]>]>
- case 3:
- define items <list[<item[black_banner]>|<item[milk_bucket]>|<item[cocoa_beans]>]>
- run inventory_filler def.player:<player> def.items:<[items]>