Date: 2024/03/30 04:02:26 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
novashop_data:
type: data
debug: false
blocks:
stone:
buy: 10
sell: 0.27
granite:
buy: 10
sell: 0.27
andesite:
buy: 10
sell: 0.27
cobblestone:
buy: 7.25
sell: 0.2
mossy_cobblestone:
buy: 12
sell: 0.33
stone_bricks:
buy: 10
sell: 0.27
mossy_stone_bricks:
buy: 38.5
sell: 1.1
wood:
stripped_oak_wood:
buy: 19
sell: 0.25
stripped_spruce_wood:
buy: 19
sell: 0.25
stripped_birch_wood:
buy: 19
sell: 0.25
stripped_jungle_wood:
buy: 19
sell: 0.25
stripped_acacia_wood:
buy: 19
sell: 0.3
stripped_dark_oak_wood:
buy: 19
sell: 0.25
mangrove_log:
buy: 17
sell: 5
mangrove_slab:
buy: 7
mangrove_stairs:
buy: 14
mangrove_trapdoor:
buy: 45
mangrove_door:
buy: 160
mangrove_fence_gate:
buy: 110
mangrove_fence:
buy: 19
mobdrop:
rotten_flesh:
buy: 10
sell: 0.3
gunpowder:
buy: 63.5
sell: 1.8
ender_pearl:
buy: 38.5
sell: 1.1
spider_eye:
buy: 26.5
sell: 0.7
string:
buy: 5
sell: 0.1
bone:
buy: 13.5
sell: 0.4
arrow:
buy: 13.5
sell: 0.4
redstone:
redstone:
buy: 17
sell: 0.5
hopper:
buy: 510
redstone_torch:
buy: 18
redstone_block:
buy: 145
sell: 4
redstone_lamp:
buy: 21
ores:
coal:
buy: 10
sell: 0.3
coal_block:
buy: 84.7
sell: 2.4
iron_ingot:
buy: 110
sell: 3.1
iron_block:
buy: 910
sell: 25.3
farming:
cake:
buy: 510
bread:
buy: 26
pumpkin_pie:
buy: 105
cooked_porkchop:
buy: 16
baked_potato:
buy: 31
cooked_beef:
buy: 41
cooked_chicken:
buy: 16
cooked_rabbit:
buy: 37
cooked_mutton:
buy: 36
sell_cmd:
type: command
name: sell
debug: true
usage: /sell
description: Sell Items
script:
- define shop_data <script[novashop_data].data_key[blocks]>
- foreach <[shop_data]> key:item:
- define name <[item]>
- if <player.item_in_hand.material.name> matches <[item]>:
- define sell <script[novashop_data].data_key[blocks.<[item]>.sell].if_null[null]>
- define data_item <[item].if_null[null]>
- else:
- foreach next
- define shop_data <script[novashop_data].data_key[wood]>
- foreach <[shop_data]> key:item:
- define name <[item]>
- if <player.item_in_hand.material.name> matches <[item]>:
- define sell <script[novashop_data].data_key[wood.<[item]>.sell].if_null[null]>
- define data_item <[item].if_null[null]>
- else:
- foreach next
- define shop_data <script[novashop_data].data_key[mobdrop]>
- foreach <[shop_data]> key:item:
- define name <[item]>
- if <player.item_in_hand.material.name> matches <[item]>:
- define sell <script[novashop_data].data_key[mobdrop.<[item]>.sell].if_null[null]>
- define data_item <[item].if_null[null]>
- else:
- foreach next
- define shop_data <script[novashop_data].data_key[redstone]>
- foreach <[shop_data]> key:item:
- define name <[item]>
- if <player.item_in_hand.material.name> matches <[item]>:
- define sell <script[novashop_data].data_key[redstone.<[item]>.sell].if_null[null]>
- define data_item <[item].if_null[null]>
- else:
- foreach next
- define shop_data <script[novashop_data].data_key[ores]>
- foreach <[shop_data]> key:item:
- define name <[item]>
- if <player.item_in_hand.material.name> matches <[item]>:
- define sell <script[novashop_data].data_key[ores.<[item]>.sell].if_null[null]>
- define data_item <[item].if_null[null]>
- else:
- foreach next
- define shop_data <script[novashop_data].data_key[farming]>
- foreach <[shop_data]> key:item:
- define name <[item]>
- if <player.item_in_hand.material.name> matches <[item]>:
- define sell <script[novashop_data].data_key[farming.<[item]>.sell].if_null[null]>
- define data_item <[item].if_null[null]>
- else:
- foreach next
- if <[data_item].equals[null]> || <[sell].equals[null]>:
- narrate "<&c>That Item can not be sold"
- stop
- define quantity <player.item_in_hand.quantity>
- define item <[data_item].as[item]>
- define matchable <[item].script.name.if_null[<[item].material.name>]>
- take item:<[matchable]> quantity:<[quantity]>
- define price <[quantity].mul[<[sell]>]>
- money give quantity:<[price]>
- narrate "<&7>You have sold <[quantity]>x <[item].display.if_null[<[item].material.translated_name>]> <&7>for <&a><[price]> <server.economy.currency_name[<[price]>]><&7>."