Date: 2020/05/12 22:54:04 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
SB_Shop_Command:
type: command
debug: true
name: shop
description: open the skybread shop
usage: /shop
tab complete:
- if <context.args.is_empty>:
- determine <list[blocks|ores|food|drops|misc]>
- else if <context.args.size> == 1 && !<context.raw_args.ends_with[<&sp>]>:
- determine <list[blocks|ores|food|drops|misc].filter[starts_with[<context.args.last>]]>
script:
- if <context.args.is_empty>:
#- inventory open d:<inventory[SB_Shops]>
- narrate "Opens a main shops where you can select the cateogry"
- else if <context.args.size> == 1 && <context.args.contains_any[blocks|ores|food|drops|misc]>:
- define Category <context.args.get[1]>
- foreach <script[SkyBread_Shop_Data].list_keys[<[Category]>]> as:Item:
- define Item_Data <script[SkyBread_Shop_Data].yaml_key[<[Category]>.<[Item]>]>
- define "Items:->:<item[<[Item]>].with[display_name=<&b><[Item].as_material.name.replace[_].with[<&sp>].to_titlecase>;nbt=<list[<[Category]>/<[Item_data]>]>;Lore=<list[<&7>Buy Price: $<&a><[Item_Data].before[/]>|<&7>Sell Price: $<&c><[Item_Data].after[/]>|<empty>|<&a>Left click to buy|<&c>Right click to sell|<&9>MMB to adjust amount]>]>"
- inventory open "d:<inventory[generic[size=54;contents=<[Items]>;title=SkyBread » Shop » <[Category].to_titlecase>]]>"
#<[Category].as_element.to_titlecase> ?
- else:
- narrate "<&c>Incorrect command usage! Type shop (category)"
SkyBread_Shop_Data:
type: yaml data
Blocks:
Stone_Bricks: 2/0.2
Mossy_Stone_Bricks: 2/na
Chiseled_Stone_Bricks: 2/na
Stone: 1/0.2
Cobblestone: 2/1
Mossy_Cobblestone: 1/na
Mycelium: 10/na
Grass_Block: 25/4
Dirt: 20/3
Oak_Log: 4/1
Spruce_Log: 4/1
Birch_Log: 4/1
Jungle_Log: 4/1
Acacia_Log: 4/1
Dark_Oak_Log: 4/1
Sponge: 100/na
Bricks: 4/na
Granite: 1/0.2
Diorite: 1/0.2
Andesite: 1/0.2
Obsidian: 100/4
Sandstone: 4/0.2
Sand: 15/3
Red_Sand: 15/3
Glass: 8/0.3
Gravel: 3/0.2
Block_of_Quartz: 40/na
Chiseled_Quartz_Block: 40/na
Quartz_Pillar: 40/na
Magma_Block: 2.5/na
Netherrack: 1/0.1
Soul_Sand: 3/0.2
Glowstone: 15/4
Clay: 3/1
Bookshelf: 80/na
Snow_Block: 10/0.5
Ice: 2/1
Packed_Ice: 3/1.5
End_Stone: 2/0.2
Sea_Lantern: 15/na
White_Wool: 10/2.5
Orange_Wool: 10/2.5
Magenta_Wool: 10/2.5
Light_Blue_Wool: 10/2.5
Yellow_Wool: 10/2.5
Lime_Wool: 10/2.5
Pink_Wool: 10/2.5
Gray_wool: 10/2.5
Light_Gray_Wool: 10/2.5
Cyan_Wool: 10/2.5
Purple_Wool: 10/2.5
Blue_Wool: 10/2.5
Brown_Wool: 10/2.5
Green_Wool: 10/2.5
Red_Wool: 10/2.5
White_Stained_Glass: 10/2.5
Orange_Stained_Glass: 10/2.5
Magenta_Stained_Glass: 10/2.5
Light_Blue_Stained_Glass: 10/2.5
Yellow_Stained_Glass: 10/2.5
Lime_Stained_Glass: 10/2.5
Pink_Stained_Glass: 10/2.5
Gray_Stained_Glass: 10/2.5
Light_Gray_Stained_Glass: 10/2.5
Cyan_Stained_Glass: 10/2.5
Purple_Stained_Glass: 10/2.5
Blue_Stained_Glass: 10/2.5
Brown_Stained_Glass: 10/2.5
Green_Stained_Glass: 10/2.5
Red_Stained_Glass: 10/2.5
Ores:
Coal: 8/2
Charcoal: 8/2
Redstone: 4/1
Lapis_Lazuli: 8/2
Iron_Ingot: 15/3.75
Gold_Ingot: 40/10
Emerald: 100/10
Diamond: 160/40
Nether_Quartz: 10/2.5
Flint: 2/0.5
Nature:
Oak_Sapling: 3/0.75
Spruce_Sapling: 3/0.75
Birch_Sapling: 3/0.75
Jungle_Sapling: 3/0.75
Acacia_Sapling: 3/0.75
Dark_Oak_Sapling: 3/0.75
Wheat_Seeds: 2/0.5
Melon_Slice: 2/0.5
Pumpkin: 4/1.3
Sugar_Cane: 2/1
Cactus: 2/1
Nether_Wart: 4/2
Cocoa_Beans: 2/0.5
Vines: 1.5/na
Brown_Mushroom: 2/0.5
Red_Mushroom: 2/0.5
Wheat: 2/0.5
Cobweb: 50/na
Carrot: 2/1
Potato: 2/1
Lily_Pad: 1.5/na
Bamboo: 10/0.75
Seagrass: 2/na
Sea_Pickle: 5/na
Kelp: 2/0.5
Food:
Apple: 2/1
Bread: 5/1.5
Raw_Beef: 10/2.5
Cooked_Beef: 15/4
Raw_Porkchop: 10/2.5
Cooked_Porkchop: 15/4
Raw_Chicken: 10/2.5
Cooked_Chicken: 15/4
Raw_Rabbit: 10/2.5
Cooked_Rabbit: 15/4
Raw_Mutton: 10/2.5
Cooked_Mutton: 15/4
Baked_Potato: 5/1.5
Cookie: 2/0.5
Raw_Cod: 5/1.5
Cooked_Cod: 8/2.5
Raw_Salmon: 5/1.5
Cooked_Salmon: 8/2.5
Tropical_Fish: 5/2
Pufferfish: 5/2
Drops:
Rotten_Flesh: 1/0.75
Bone: 4/1
Arrow: 10/0.75
String: 2/1
Spider_Eye: 10/2
Gunpowder: 7/2.5
Blaze_Rod: 10/3
Ender_Pearl: 100/5
Ghast_Tear: 60/4
Slimeball: 25/4
Magma_Cream: 25/2.5
Prismarine_Shard: 2/1
Prismarine_Crystals: 2/1
Ink_Sac: 2.5/1
Glowstone_Dust: 4/1
Egg: 5/0.1
Feather: 2.5/1
Leather: 10/1
Rabbit_Hide: 30/na
Rabbit_Foot: 50/12.5
Phantom_Membrane: 50/5
Miscellaneous:
Saddle: 150/50
Leather_Horse_Armor: 100/na
Iron_Horse_Armor: 300/na
Gold_Horse_Armor: 450/na
Diamond_Horse_Armor: 550/na
Book: 25/5
Item_Frame: 15/na
Name_Tag: 150/na
Lead: 30/na
End_Rod: 15/na
Piston: 20/na
Sticky_Piston: 45/na
Dispenser: 20/na
Dropper: 18/na
Observer: 15/na
Redstone_Lamp: 18/na
Redstone_Comparator: 20/na
Redstone_Repeater: 18/na
Hopper: 100/na
Daylight_Detector: 20/na
Redstone_Torch: 6/na