Date: 2020/04/25 20:16:54 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
#Flag discount
PotionNPC:
type: assignment
debug: false
actions:
on assignment:
- trigger name:click state:true
on click:
- flag player discount:<npc.flag[discount]>
- flag player shopkeeper:<npc.name>
- inventory open d:PotionsBuyInv1
PotionsBuyInv1:
type: inventory
debug: false
inventory: chest
title: <player.flag[shopkeeper]||Potions>
size: 54
slots:
- [potion[potion_effects=li@NIGHT_VISION,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@NIGHT_VISION,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@INVISIBILITY,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@INVISIBILITY,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@JUMP,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@JUMP,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@JUMP,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [i@potion[potion_effects=li@FIRE_RESISTANCE,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [i@potion[potion_effects=li@FIRE_RESISTANCE,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]]
- [potion[potion_effects=li@SPEED,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@SPEED,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@SPEED,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@SLOWNESS,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@SLOWNESS,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@SLOWNESS,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@TURTLE_MASTER,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@TURTLE_MASTER,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@TURTLE_MASTER,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]]
- [potion[potion_effects=li@WATER_BREATHING,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@WATER_BREATHING,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@INSTANT_HEAL,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@INSTANT_HEAL,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@INSTANT_DAMAGE,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@INSTANT_DAMAGE,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@POISON,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@POISON,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@POISON,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]]
- [potion[potion_effects=li@REGEN,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@REGEN,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@REGEN,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@STRENGTH,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@STRENGTH,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@STRENGTH,true,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@WEAKNESS,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@WEAKNESS,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@LUCK,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]]
- [potion[potion_effects=li@SLOW_FALLING,false,false;nbt=li@cost/50;lore=<&7>Buy Price<&co> <&a>$<element[50].mul[<player.flag[discount]>].round_to[2]>]] [potion[potion_effects=li@SLOW_FALLING,false,true;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [] [] [] [] [] [] []
- [] [] [] [] [ExitBlock] [] [emerald_block[display_name=<&a><&l>Next]] [] [stone[display_name=<&a>Buy]]
PotionsBuyInv2:
type: inventory
debug: false
inventory: chest
title: <player.flag[shopkeeper]||Potions>
size: 54
slots:
- [splash_potion[potion_effects=li@NIGHT_VISION,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@NIGHT_VISION,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@INVISIBILITY,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@INVISIBILITY,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@JUMP,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@JUMP,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@JUMP,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [i@splash_potion[potion_effects=li@FIRE_RESISTANCE,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [i@splash_potion[potion_effects=li@FIRE_RESISTANCE,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]]
- [splash_potion[potion_effects=li@SPEED,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@SPEED,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@SPEED,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@SLOWNESS,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@SLOWNESS,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@SLOWNESS,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@TURTLE_MASTER,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@TURTLE_MASTER,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@TURTLE_MASTER,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]]
- [splash_potion[potion_effects=li@WATER_BREATHING,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@WATER_BREATHING,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@INSTANT_HEAL,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@INSTANT_HEAL,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@INSTANT_DAMAGE,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@INSTANT_DAMAGE,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@POISON,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@POISON,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@POISON,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]]
- [splash_potion[potion_effects=li@REGEN,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@REGEN,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@REGEN,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@STRENGTH,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@STRENGTH,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@STRENGTH,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@WEAKNESS,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@WEAKNESS,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@LUCK,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]]
- [splash_potion[potion_effects=li@SLOW_FALLING,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [splash_potion[potion_effects=li@SLOW_FALLING,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [] [] [] [] [] [] []
- [] [] [emerald_block[display_name=<&a><&l>Back]] [] [ExitBlock] [] [emerald_block[display_name=<&a><&l>Next]] [] [stone[display_name=<&a>Buy]]
PotionsBuyInv3:
type: inventory
debug: false
inventory: chest
title: <player.flag[shopkeeper]||Potions>
size: 54
slots:
- [lingering_potion[potion_effects=li@NIGHT_VISION,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@NIGHT_VISION,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@INVISIBILITY,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@INVISIBILITY,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@JUMP,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@JUMP,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@JUMP,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [i@lingering_potion[potion_effects=li@FIRE_RESISTANCE,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [i@lingering_potion[potion_effects=li@FIRE_RESISTANCE,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]]
- [lingering_potion[potion_effects=li@SPEED,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@SPEED,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@SPEED,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@SLOWNESS,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@SLOWNESS,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@SLOWNESS,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@TURTLE_MASTER,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@TURTLE_MASTER,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@TURTLE_MASTER,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]]
- [lingering_potion[potion_effects=li@WATER_BREATHING,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@WATER_BREATHING,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@INSTANT_HEAL,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@INSTANT_HEAL,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@INSTANT_DAMAGE,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@INSTANT_DAMAGE,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@POISON,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@POISON,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@POISON,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]]
- [lingering_potion[potion_effects=li@REGEN,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@REGEN,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@REGEN,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@STRENGTH,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@STRENGTH,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@STRENGTH,true,false;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@WEAKNESS,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@WEAKNESS,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@LUCK,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]]
- [lingering_potion[potion_effects=li@SLOW_FALLING,false,false;nbt=li@cost/75;lore=<&7>Buy Price<&co> <&a>$<element[75].mul[<player.flag[discount]>].round_to[2]>]] [lingering_potion[potion_effects=li@SLOW_FALLING,false,true;nbt=li@cost/100;lore=<&7>Buy Price<&co> <&a>$<element[100].mul[<player.flag[discount]>].round_to[2]>]] [] [] [] [] [] [] []
- [] [] [emerald_block[display_name=<&a><&l>Back]] [] [ExitBlock] [] [] [] [stone[display_name=<&a>Buy]]
PotionsSellInv1:
type: inventory
debug: false
inventory: chest
title: <player.flag[shopkeeper]||Potions>
size: 54
slots:
- [potion[potion_effects=li@NIGHT_VISION,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@NIGHT_VISION,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@INVISIBILITY,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@INVISIBILITY,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@JUMP,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@JUMP,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@JUMP,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [i@potion[potion_effects=li@FIRE_RESISTANCE,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [i@potion[potion_effects=li@FIRE_RESISTANCE,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]]
- [potion[potion_effects=li@SPEED,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@SPEED,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@SPEED,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@SLOWNESS,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@SLOWNESS,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@SLOWNESS,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@TURTLE_MASTER,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@TURTLE_MASTER,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@TURTLE_MASTER,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]]
- [potion[potion_effects=li@WATER_BREATHING,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@WATER_BREATHING,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@INSTANT_HEAL,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@INSTANT_HEAL,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@INSTANT_DAMAGE,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@INSTANT_DAMAGE,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@POISON,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@POISON,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@POISON,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]]
- [potion[potion_effects=li@REGEN,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@REGEN,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@REGEN,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@STRENGTH,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@STRENGTH,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@STRENGTH,true,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@WEAKNESS,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@WEAKNESS,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [potion[potion_effects=li@LUCK,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]]
- [potion[potion_effects=li@SLOW_FALLING,false,false;nbt=li@cost/10;lore=<&7>Sell Reward<&co> <&a>$10]] [potion[potion_effects=li@SLOW_FALLING,false,true;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [] [] [] [] [] [] []
- [] [] [] [] [ExitBlock] [] [emerald_block[display_name=<&a><&l>Next]] [] [bedrock[display_name=<&6>Sell]]
PotionsSellInv2:
type: inventory
debug: false
inventory: chest
title: <player.flag[shopkeeper]||Potions>
size: 54
slots:
- [splash_potion[potion_effects=li@NIGHT_VISION,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@NIGHT_VISION,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@INVISIBILITY,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@INVISIBILITY,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@JUMP,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@JUMP,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@JUMP,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [i@splash_potion[potion_effects=li@FIRE_RESISTANCE,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [i@splash_potion[potion_effects=li@FIRE_RESISTANCE,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]]
- [splash_potion[potion_effects=li@SPEED,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@SPEED,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@SPEED,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@SLOWNESS,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@SLOWNESS,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@SLOWNESS,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@TURTLE_MASTER,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@TURTLE_MASTER,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@TURTLE_MASTER,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]]
- [splash_potion[potion_effects=li@WATER_BREATHING,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@WATER_BREATHING,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@INSTANT_HEAL,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@INSTANT_HEAL,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@INSTANT_DAMAGE,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@INSTANT_DAMAGE,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@POISON,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@POISON,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@POISON,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]]
- [splash_potion[potion_effects=li@REGEN,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@REGEN,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@REGEN,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@STRENGTH,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@STRENGTH,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@STRENGTH,true,false;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@WEAKNESS,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@WEAKNESS,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [splash_potion[potion_effects=li@LUCK,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]]
- [splash_potion[potion_effects=li@SLOW_FALLING,false,false;nbt=li@cost/11;lore=<&7>Sell Reward<&co> <&a>$11]] [splash_potion[potion_effects=li@SLOW_FALLING,false,true;nbt=li@cost/12;lore=<&7>Sell Reward<&co> <&a>$12]] [] [] [] [] [] [] []
- [] [] [emerald_block[display_name=<&a><&l>Back]] [] [ExitBlock] [] [emerald_block[display_name=<&a><&l>Next]] [] [bedrock[display_name=<&6>Sell]]
PotionsSellInv3:
type: inventory
debug: false
inventory: chest
title: <player.flag[shopkeeper]||Potions>
size: 54
slots:
- [lingering_potion[potion_effects=li@NIGHT_VISION,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@NIGHT_VISION,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@INVISIBILITY,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@INVISIBILITY,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@JUMP,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@JUMP,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@JUMP,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [i@lingering_potion[potion_effects=li@FIRE_RESISTANCE,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [i@lingering_potion[potion_effects=li@FIRE_RESISTANCE,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]]
- [lingering_potion[potion_effects=li@SPEED,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@SPEED,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@SPEED,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@SLOWNESS,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@SLOWNESS,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@SLOWNESS,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@TURTLE_MASTER,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@TURTLE_MASTER,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@TURTLE_MASTER,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]]
- [lingering_potion[potion_effects=li@WATER_BREATHING,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@WATER_BREATHING,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@INSTANT_HEAL,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@INSTANT_HEAL,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@INSTANT_DAMAGE,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@INSTANT_DAMAGE,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@POISON,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@POISON,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@POISON,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]]
- [lingering_potion[potion_effects=li@REGEN,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@REGEN,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@REGEN,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@STRENGTH,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@STRENGTH,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@STRENGTH,true,false;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@WEAKNESS,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@WEAKNESS,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [lingering_potion[potion_effects=li@LUCK,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]]
- [lingering_potion[potion_effects=li@SLOW_FALLING,false,false;nbt=li@cost/25;lore=<&7>Sell Reward<&co> <&a>$25]] [lingering_potion[potion_effects=li@SLOW_FALLING,false,true;nbt=li@cost/30;lore=<&7>Sell Reward<&co> <&a>$30]] [] [] [] [] [] [] []
- [] [] [emerald_block[display_name=<&a><&l>Back]] [] [ExitBlock] [] [] [] [bedrock[display_name=<&6>Sell]]
ArcheryNPC:
type: assignment
actions:
on assignment:
- trigger name:click state:true
on click:
- flag player discount:<npc.flag[discount]>
- flag player shopkeeper:<npc.name>
- inventory open d:ArcheryInv
ArcheryInv:
type: inventory
debug: false
inventory: chest
title: <&3>
ShopHandler:
type: world
debug: false
events:
on player clicks in PotionsBuyInv1 priority:1:
- define inventlist <list[<inventory[PotionsBuyInv1]>|<inventory[PotionsBuyInv2]>|<inventory[PotionsBuyInv3]>]>
- define index <element[1]>
- inject OpenBuyShop
on player closes PotionsBuyInv1:
- inject LeaveShop
on player clicks in PotionsBuyInv2 priority:1:
- define inventlist <list[<inventory[PotionsBuyInv1]>|<inventory[PotionsBuyInv2]>|<inventory[PotionsBuyInv3]>]>
- define index <element[2]>
- inject OpenBuyShop
on player closes PotionsBuyInv2:
- inject LeaveShop
on player clicks in PotionsBuyInv3 priority:1:
- define inventlist <list[<inventory[PotionsBuyInv1]>|<inventory[PotionsBuyInv2]>|<inventory[PotionsBuyInv3]>]>
- define index <element[3]>
- inject OpenBuyShop
on player closes PotionsBuyInv3:
- inject LeaveShop
on player clicks in PotionsSellInv1 priority:1:
- define inventlist <list[<inventory[PotionsSellInv1]>|<inventory[PotionsSellInv2]>|<inventory[PotionsSellInv3]>]>
- define index <element[1]>
- inject OpenSellShop
on player closes PotionsSellInv1:
- inject LeaveShop
on player clicks in PotionsSellInv2 priority:1:
- define inventlist <list[<inventory[PotionsSellInv1]>|<inventory[PotionsSellInv2]>|<inventory[PotionsSellInv3]>]>
- define index <element[2]>
- inject OpenSellShop
on player closes PotionsSellInv2:
- inject LeaveShop
on player clicks in PotionsSellInv3 priority:1:
- define inventlist <list[<inventory[PotionsSellInv1]>|<inventory[PotionsSellInv2]>|<inventory[PotionsSellInv3]>]>
- define index <element[3]>
- inject OpenSellShop
on player closes PotionsSellInv3:
- inject LeaveShop
on player clicks ExitBlock in inventory:
- inventory close d:<context.inventory>
OpenBuyShop:
type: task
debug: false
script:
- determine passively cancelled
- if <context.item.display||null> == "<&a><&l>Next":
- inventory open d:<[inventlist].get[<[index].add[1]>]>
- if <context.item.display||null> == "<&a><&l>Back":
- inventory open d:<[inventlist].get[<[index].sub[1]>]>
- if <context.item.display||null> == "<&a>Buy":
- inventory open d:PotionsSellInv1
- if <context.item.has_nbt[cost]>:
- define price <context.item.nbt[cost].mul[<player.flag[discount]>].round_to[2]>
- if <player.money> >= <[price]>:
- if <player.inventory.is_full>:
- narrate "<&c>Your inventory is full!"
- stop
- take money quantity:<[price]>
- define item <context.item>
- adjust def:item Lore:
- adjust def:item remove_nbt
- give <[item]>
- narrate "<player.flag[shopkeeper]><&co> <&a>Successfully bought <[item].formatted> for $<[price]>"
- else:
- narrate "<&c>You need $<[price].sub[<player.money>]> more to buy this item."
OpenSellShop:
type: task
debug: false
script:
- determine passively cancelled
- if <context.item.display||null> == "<&a><&l>Next":
- inventory open d:<[inventlist].get[<[index].add[1]>]>
- if <context.item.display||null> == "<&a><&l>Back":
- inventory open d:<[inventlist].get[<[index].sub[1]>]>
- if <context.item.display||null> == "<&6>Sell":
- inventory open d:PotionsBuyInv1
- if <context.item.has_nbt[cost]>:
- define item <context.item>
- adjust def:item Lore:
- adjust def:item remove_nbt
- if !<player.inventory.contains[<[item]>]>:
- narrate "<&c>You don't have that item."
- stop
- define reward <context.item.nbt[cost]>
- take <[item]>
- give money quantity:<[reward]>
- narrate "<player.flag[shopkeeper]><&co> <&a>Successfully sold <[item].formatted> for $<[reward]>"
LeaveShop:
type: task
debug: false
script:
- wait 1s
- if <player.open_inventory.title> == Chest:
- flag player discount:!
- flag player shopkeeper:!
ExitBlock:
type: item
material: redstone_block
display name: <&c><&l>Exit