Date: 2023/09/15 05:29:13 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
67
68
69
70
71
72
73
74
75
76
night_market_command:
type: command
name: nightmarket
debug: false
description: Night market item
usage: /nightmarket
script:
- inventory open d:night_market
night_market:
type: inventory
inventory: chest
debug: false
gui: true
title: <&C><&l> NIGHT MARKET
size: 27
slots:
- [gb] [gb] [gb] [gb] [gb] [gb] [gb] [gb] [gb]
- [gb] [b] [b] [b] [gb] [b] [b] [b] [gb]
- [rr] [gb] [gb] [gb] [gb] [gb] [gb] [gb] [gb]
night_market2:
type: inventory
inventory: chest
debug: false
gui: true
title: <&C><&l> NIGHT MARKET
size: 27
slots:
- [gb] [gb] [gb] [gb] [gb] [gb] [gb] [gb] [gb]
- [gb] [b] [b] [b] [gb] [b] [b] [b] [gb]
- [red] [gb] [gb] [gb] [gb] [gb] [gb] [gb] [gb]
gb:
type: item
material: black_stained_glass_pane
display name: <&c><&l>
b:
type: item
material: i@turtle_egg
display name: <&a><&l> SECRET
lore:
- ""
- "<&7>ยป <&c><&l>CLICK TO REVEAL ITEM"
- ""
rr:
type: item
material: i@structure_void
display name: <&a><&L>REROLL
red:
type: item
material: barrier
display name: <&C><&l>X
night_market_l:
type: world
debug: false
events:
on player clicks gb in night_market:
- determine cancelled
on player clicks rr in night_market:
- inventory open d:in@night_market2
on player clicks red in night_market2:
- determine cancelled
on player clicks b in night_market:
- define random <list[diamond|dirt|netherite_sword].random>
- playsound <player> sound:ENTITY_TURTLE_LAY_EGG
- inventory set <[random]> slot:<context.slot>
- determine cancelled
on player clicks b in night_market2:
- playsound <player> sound:ENTITY_TURTLE_LAY_EGG
- determine cancelled