Date: 2018/05/21 10:21:00 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
first_script:
type: world
debug: false
events:
on player right clicks player:
- if <player.is_sneaking> == true {
- inventory open d:in@options_menu
- flag player clicked_player:<context.entity>
}
on player clicks in options_menu:
- determine cancelled
on player drags in options_menu:
- determine cancelled
on player clicks in inspect_menu:
- determine cancelled
on player drags in inspect_menu:
- determine cancelled
on player clicks opts_slot1 in options_menu:
- inventory open d:in@inspect_menu
on player clicks opts_slot2 in options_menu:
- execute as_player "trade <player.flag[clicked_player].as_player.name>"
on player clicks opts_slot3 in options_menu:
- narrate "Nothing here yet."
on player clicks opts_slot4 in options_menu:
- narrate "Nothing here yet."
on player clicks opts_slot5 in options_menu:
- narrate "Nothing here yet."
on player clicks opts_slot6 in options_menu:
- narrate "Nothing here yet."
options_menu:
type: inventory
title: <player.flag[clicked_player].as_player.name>
size: 9
slots:
- "[i@opts_slot1] [i@opts_slot2] [i@opts_slot3] [i@opts_slot4] [i@opts_slot5] [i@opts_slot6] [] [] []"
opts_slot1:
type: item
material: paper
display name: <&c><bold>Inspect
lore:
- <&7><&o>See the gear that this player is wearing.
opts_slot2:
type: item
material: hopper
display name: <&c><bold>Trade
lore:
- <&7><&o>You send a trade request to the player.
opts_slot3:
type: item
material: arrow
display name: <&c><bold>Duel
lore:
- <&7><&o>You send a duel request to the player.
opts_slot4:
type: item
material: book
display name: <&c><bold>Party Invite
lore:
- <&7><&o>You send a party invite to the player.
opts_slot5:
type: item
material: shield
display name: <&c><bold>Guild Invite
lore:
- <&7><&o>You send a guild invite to the player.
opts_slot6:
type: item
material: armor_stand
display name: <&c><bold>Friend Request
lore:
- <&7><&o>You send a friend request to the player.
eq_slot1:
type: item
material: <player.flag[clicked_player].as_player.equipment.helmet>
eq_slot2:
type: item
material: <player.flag[clicked_player].as_player.equipment.chestplate>
eq_slot3:
type: item
material: <player.flag[clicked_player].as_player.equipment.leggings>
eq_slot4:
type: item
material: <player.flag[clicked_player].as_player.equipment.boots>
eq_slot5:
type: item
material: <player.flag[clicked_player].as_player.item_in_offhand>
eq_slot6:
type: item
material: <player.flag[clicked_player].as_player.item_in_hand>
glass_slot1:
type: item
material: black_stained_glass_pane
display name: <&c>
inspect_menu:
type: inventory
title: Inspect Equipment
definitions:
slot1: <tern[player.flag[clicked_player].as_player.equipment.helmet]:player.flag[clicked_player].as_player.equipment.helmet||paper>
slot2: <player.flag[clicked_player].as_player.equipment.chestplate>
slot3: <player.flag[clicked_player].as_player.equipment.leggings||paper>
slot4: <player.flag[clicked_player].as_player.equipment.boots||paper>
slot5: <player.flag[clicked_player].as_player.item_in_hand||paper>
slot6: <player.flag[clicked_player].as_player.item_in_offhand||paper>
size: 27
slots:
- "[i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1]"
- "[i@glass_slot1] [slot1] [slot2] [slot3] [slot4] [i@glass_slot1] [slot5] [slot6] [i@glass_slot1]"
- "[i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1] [i@glass_slot1]"