-
Notifications
You must be signed in to change notification settings - Fork 36
/
+global-variations.sk
487 lines (418 loc) · 18.4 KB
/
+global-variations.sk
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
#= Variations are available globally once they're declared. We can take advantage of this
# for blocks whose pre and post-flattening ID definitions can be differentiated almost
# entirely via variation.
# Variations which use data values for older Minecraft versions.
data values:
minecraft version = 1.12.2 or older
# For blocks that were colored via data value in 1.12 and below
{colored}:
white = - {Damage:0}
orange = - {Damage:1}
magenta = - {Damage:2}
light blue = - {Damage:3}
yellow = - {Damage:4}
(lime|light green) = - {Damage:5}
pink = - {Damage:6}
[dark] gr(a|e)y = - {Damage:7}
light gr(a|e)y = - {Damage:8}
cyan = - {Damage:9}
purple = - {Damage:10}
blue = - {Damage:11}
brown = - {Damage:12}
[dark] green = - {Damage:13}
red = - {Damage:14}
black = - {Damage:15}
{opposite colored}:
white = - {Damage:15}
orange = - {Damage:14}
magenta = - {Damage:13}
light blue = - {Damage:12}
yellow = - {Damage:11}
(lime|light green) = - {Damage:10}
pink = - {Damage:9}
[dark] gr(a|e)y = - {Damage:8}
light gr(a|e)y = - {Damage:7}
cyan = - {Damage:6}
purple = - {Damage:5}
blue = - {Damage:4}
brown = - {Damage:3}
[dark] green = - {Damage:2}
red = - {Damage:1}
black = - {Damage:0}
# For blocks that were colored via ID even in 1.12. Rarely used, but it needs to be a different
# variation than the 1.13 ID-based one because 'light_gray' used to be 'silver' in IDs.
{old colored IDs}:
white = minecraft:white_-
orange = minecraft:orange_-
magenta = minecraft:magenta_-
light blue = minecraft:light_blue_-
yellow = minecraft:yellow_-
(lime|light green) = minecraft:lime_-
pink = minecraft:pink_-
[dark] gr(a|e)y = minecraft:gray_-
light gr(a|e)y = minecraft:silver_-
cyan = minecraft:cyan_-
purple = minecraft:purple_-
blue = minecraft:blue_-
brown = minecraft:brown_-
[dark] green = minecraft:green_-
red = minecraft:red_-
black = minecraft:black_-
# For blocks that can point in all six directions.
# Dispenser, dropper, pistons, end rods.
{orientable}:
{default} = - {Damage:1}
down(ward| facing) = - {Damage:0}
up(ward| facing) = - {Damage:1}
north(ward| facing) = - {Damage:2}
south(ward| facing) = - {Damage:3}
west(ward| facing) = - {Damage:4}
east(ward| facing) = - {Damage:5}
# For all stairs
{stair direction}:
{default} = - {Damage:0}
[right-side up] east(ward| facing) = - {Damage:0}
[right-side up] west(ward| facing) = - {Damage:1}
[right-side up] south(ward| facing) = - {Damage:2}
[right-side up] north(ward| facing) = - {Damage:3}
upside down east(ward| facing) = - {Damage:4}
upside down west(ward| facing) = - {Damage:5}
upside down south(ward| facing) = - {Damage:6}
upside down north(ward| facing) = - {Damage:7}
# For blocks that can be attached to sides of another block, such as torches.
{attached}:
{default} = - {Damage:5}
down(ward| facing) = - {Damage:0}
east(ward| facing) wall = - {Damage:1}
west(ward| facing) wall = - {Damage:2}
south(ward| facing) wall = - {Damage:3}
north(ward| facing) wall = - {Damage:4}
up(ward| facing)|floor = - {Damage:5}
# For blocks that can be attached to sides of another block and toggled, namely buttons.
{attached toggleable}:
{default} = - {Damage:5}
[inactive] down(ward| facing) = - {Damage:0}
[inactive] east(ward| facing) = - {Damage:1}
[inactive] west(ward| facing) = - {Damage:2}
[inactive] south(ward| facing) = - {Damage:3}
[inactive] north(ward| facing) = - {Damage:4}
[inactive] up(ward| facing) = - {Damage:5}
active down(ward| facing) = - {Damage:8}
active east(ward| facing) = - {Damage:9}
active west(ward| facing) = - {Damage:10}
active south(ward| facing) = - {Damage:11}
active north(ward| facing) = - {Damage:12}
active up(ward| facing) = - {Damage:13}
# For wood types defined by data values in older versions. Not all wooden blocks can use this,
# just ones that were all stored in one ID using DVs 0-5 to represent them.
{old wood type}:
oak [wood[en]] = - {Damage:0}
spruce [wood[en]] = - {Damage:1}
birch [wood[en]] = - {Damage:2}
jungle [wood[en]] = - {Damage:3}
acacia [wood[en]] = - {Damage:4}
dark oak [wood[en]] = - {Damage:5}
# Variations using block states as of 1.13.
block states:
minecraft version = 1.13 or newer
{colored}:
white = minecraft:white_-
orange = minecraft:orange_-
magenta = minecraft:magenta_-
light blue = minecraft:light_blue_-
yellow = minecraft:yellow_-
(lime|light green) = minecraft:lime_-
pink = minecraft:pink_-
[dark] gr(a|e)y = minecraft:gray_-
light gr(a|e)y = minecraft:light_gray_-
cyan = minecraft:cyan_-
purple = minecraft:purple_-
blue = minecraft:blue_-
brown = minecraft:brown_-
[dark] green = minecraft:green_-
red = minecraft:red_-
black = minecraft:black_-
# For blocks that can point in all six directions.
# Dispenser, dropper, pistons, end rods.
{orientable}:
{default} = -
down(ward| facing) = -[facing=down]
up(ward| facing) = -[facing=up]
north(ward| facing) = -[facing=north]
south(ward| facing) = -[facing=south]
west(ward| facing) = -[facing=west]
east(ward| facing) = -[facing=east]
# For blocks (like leaves) that can be at any layer of a block.
# e.g. glow_lichen
{surface}:
{default} = -
down(ward| facing) = -[down=true]
up(ward| facing) = -[up=true]
north(ward| facing) = -[north=true]
south(ward| facing) = -[south=true]
west(ward| facing) = -[west=true]
east(ward| facing) = -[east=true]
# For blocks that can only point in four directions.
{directional}:
{default} = -
north(ward| facing) = -[facing=north]
south(ward| facing) = -[facing=south]
west(ward| facing) = -[facing=west]
east(ward| facing) = -[facing=east]
# For anything that can exist in either the top or bottom half of a block (slabs), can be flipped
# (stairs), or that has top and bottom halves (double plants, doors, etc.)
{block half}:
{default} = -
(bottom|lower)[-half] = -[half=lower]
(top|upper)[-half] = -[half=upper]
# For anything that can be rotated along the three axes like pillars and logs, i.e. for
# things where "pointing east" and "pointing west" would look the same.
{axis-aligned}:
{default} = -
(vertical|z-aligned) = -[axis=y]
(east-west|west-east|x-aligned) = -[axis=x]
(north-south|south-north|z-aligned) = -[axis=z]
# For anything that can be powered. Levers, buttons, etc.
{powerable}:
{default} = -
powered = -[powered=true]
unpowered = -[powered=false]
# For anything that can be waterlogged.
{waterloggable}:
{default} = -
dry = -[waterlogged=false]
waterlogged = -[waterlogged=true]
# For anything that can be opened (doors, trapdoors, fence gates).
{openable}:
{default} = -
open = -[open=true]
closed = -[open=false]
# For blocks that can be attached to sides of another block, such as levers.
{attached}:
{default} = -
floor = -[face=floor]
wall = -[face=wall]
ceiling = -[face=ceiling]
# For blocks that have a lit state, like furnaces or redstone torches.
{lightable}:
{default} = -
lit = -[lit=true]
unlit = -[lit=false]
# For blocks that can be rotated
{rotatable}:
{default} = -
south(ward| rotated) = -[rotation=0]
south-southwest(ward| rotated) = -[rotation=1]
southwest(ward| rotated) = -[rotation=2]
west-southwest(ward| rotated) = -[rotation=3]
west(ward| rotated) = -[rotation=4]
west-northwest(ward| rotated) = -[rotation=5]
northwest(ward| rotated) = -[rotation=6]
north-northwest(ward| rotated) = -[rotation=7]
north(ward| rotated) = -[rotation=8]
north-northeast(ward| rotated) = -[rotation=9]
northeast(ward| rotated) = -[rotation=10]
east-northeast(ward| rotated) = -[rotation=11]
east(ward| rotated) = -[rotation=12]
east-southeast(ward| rotated) = -[rotation=13]
southeast(ward| rotated) = -[rotation=14]
south-southeast(ward| rotated) = -[rotation=15]
# Skull faces point north at rotation 0 instead of south
{reversed rotatable}:
{default} = -
north(ward| rotated) = -[rotation=0]
north-northeast(ward| rotated) = -[rotation=1]
northeast(ward| rotated) = -[rotation=2]
east-northeast(ward| rotated) = -[rotation=3]
east(ward| rotated) = -[rotation=4]
east-southeast(ward| rotated) = -[rotation=5]
southeast(ward| rotated) = -[rotation=6]
south-southeast(ward| rotated) = -[rotation=7]
south(ward| rotated) = -[rotation=8]
south-southwest(ward| rotated) = -[rotation=9]
southwest(ward| rotated) = -[rotation=10]
west-southwest(ward| rotated) = -[rotation=11]
west(ward| rotated) = -[rotation=12]
west-northwest(ward| rotated) = -[rotation=13]
northwest(ward| rotated) = -[rotation=14]
north-northwest(ward| rotated) = -[rotation=15]
# For wood-based blocks that are defined with the wood type at the start of the alias.
# These blocks do not include nether blocks (such as saplings and leaves)
{tree type}:
oak = minecraft:oak_-
spruce = minecraft:spruce_-
birch = minecraft:birch_-
jungle = minecraft:jungle_-
acacia = minecraft:acacia_-
dark oak = minecraft:dark_oak_-
# Stairs
{stairs}:
{default} = -
top = -[half=top]
bottom = -[half=bottom]
{stairs shape}:
{default} = -
straight = -[shape=straight]
inner-left = -[shape=inner_left]
inner-right = -[shape=inner_right]
outer-left = -[shape=outer_left]
outer-right = -[shape=outer_right]
# Slabs
{slab}:
{default} = -
top = -[type=top]
bottom = -[type=bottom]
double = -[type=double]
# Aliases that can be used in at least one place both pre and post-flattening.
pre-nether-update woods:
minecraft version = 1.15.2 or older
# For wood-based blocks that are defined with the wood type at the start of the alias.
{wood type}:
oak [wood] = minecraft:oak_-
spruce [wood] = minecraft:spruce_-
birch [wood] = minecraft:birch_-
jungle [wood] = minecraft:jungle_-
acacia [wood] = minecraft:acacia_-
dark oak [wood] = minecraft:dark_oak_-
nether-update woods:
minecraft version = 1.16 or newer
# For wood-based blocks that are defined with the wood type at the start of the alias.
{wood type}:
oak [wood] = minecraft:oak_-
spruce [wood] = minecraft:spruce_-
birch [wood] = minecraft:birch_-
jungle [wood] = minecraft:jungle_-
acacia [wood] = minecraft:acacia_-
dark oak [wood] = minecraft:dark_oak_-
crimson = minecraft:crimson_-
warped = minecraft:warped_-
{nether block}:
crimson = minecraft:crimson_-
warped = minecraft:warped_-
wild-update woods:
minecraft version = 1.19 or newer
# For wood-based blocks that are defined with the wood type at the start of the alias.
{wood type}:
oak [wood] = minecraft:oak_-
spruce [wood] = minecraft:spruce_-
birch [wood] = minecraft:birch_-
jungle [wood] = minecraft:jungle_-
acacia [wood] = minecraft:acacia_-
dark oak [wood] = minecraft:dark_oak_-
crimson = minecraft:crimson_-
warped = minecraft:warped_-
mangrove [wood] = minecraft:mangrove_-
wild-update woods:
minecraft version = 1.20 or newer
{wood type}:
oak [wood] = minecraft:oak_-
spruce [wood] = minecraft:spruce_-
birch [wood] = minecraft:birch_-
jungle [wood] = minecraft:jungle_-
acacia [wood] = minecraft:acacia_-
dark oak [wood] = minecraft:dark_oak_-
crimson = minecraft:crimson_-
warped = minecraft:warped_-
mangrove [wood] = minecraft:mangrove_-
cherry [wood] = minecraft:cherry_-
bamboo [wood] = minecraft:bamboo_-
{tree type}:
oak = minecraft:oak_-
spruce = minecraft:spruce_-
birch = minecraft:birch_-
jungle = minecraft:jungle_-
acacia = minecraft:acacia_-
dark oak = minecraft:dark_oak_-
cherry = minecraft:cherry_-
potions before components:
minecraft version = 1.20.4 or older
{potion types}:
{default} = - # Match all potions
water = - {"Potion": "minecraft:water"}
thick = - {"Potion": "minecraft:thick"}
mundane = - {"Potion": "minecraft:mundane"}
awkward = - {"Potion": "minecraft:awkward"}
night vision = - {"Potion": "minecraft:night_vision"}
(long|extended) night vision = - {"Potion": "minecraft:long_night_vision"}
invisibility = - {"Potion": "minecraft:invisibility"}
(long|extended) invisibility = - {"Potion": "minecraft:long_invisibility"}
(leaping|jumping) = - {"Potion": "minecraft:leaping"}
(long|extended) (leaping|jumping) = - {"Potion": "minecraft:long_leaping"}
(strong|upgraded|level 2) (leaping|jumping) = - {"Potion": "minecraft:strong_leaping"}
fire resistance = - {"Potion": "minecraft:fire_resistance"}
(long|extended) fire resistance = - {"Potion": "minecraft:long_fire_resistance"}
(swiftness|speed) = - {"Potion": "minecraft:swiftness"}
(extended|long) (swiftness|speed) = - {"Potion": "minecraft:long_swiftness"}
(strong|upgraded|level 2) (swiftness|speed) = - {"Potion": "minecraft:strong_swiftness"}
slow[ness] = - {"Potion": "minecraft:slowness"}
(long|extended) slow[ness] = - {"Potion": "minecraft:long_slowness"}
(strong|upgraded|level 2) slow[ness] = - {"Potion": "minecraft:strong_slowness"}
water breathing = - {"Potion": "minecraft:water_breathing"}
(long|extended) water breathing = - {"Potion": "minecraft:long_water_breathing"}
[instant] heal(th|ing) = - {"Potion": "minecraft:healing"}
(strong|upgraded|level 2) [instant] heal(th|ing) = - {"Potion": "minecraft:strong_healing"}
[instant] (harming|damage) = - {"Potion": "minecraft:harming"}
(strong|upgraded|level 2) [instant] (harming|damage) = - {"Potion": "minecraft:strong_harming"}
poison[ing] = - {"Potion": "minecraft:poison"}
(long|extended) poison[ing] = - {"Potion": "minecraft:long_poison"}
(strong|upgraded|level 2) poison[ing] = - {"Potion": "minecraft:strong_poison"}
regen[eration] = - {"Potion": "minecraft:regeneration"}
(long|extended) regen[eration] = - {"Potion": "minecraft:long_regeneration"}
(strong|upgraded|level 2) regen[eration] = - {"Potion": "minecraft:strong_regeneration"}
strength = - {"Potion": "minecraft:strength"}
(long|extended) strength = - {"Potion": "minecraft:long_strength"}
(strong|upgraded|level 2) strength = - {"Potion": "minecraft:strong_strength"}
weak(ness|ening) = - {"Potion": "minecraft:weakness"}
(long|extended) weak(ness|ening) = - {"Potion": "minecraft:long_weakness"}
luck = - {"Potion": "minecraft:luck"}
turtle master = - {"Potion": "minecraft:turtle_master"}
(long|extended) turtle master = - {"Potion": "minecraft:long_turtle_master"}
(strong|upgraded|level 2) turtle master = - {"Potion": "minecraft:strong_turtle_master"}
slow fall[ing] = - {"Potion": "minecraft:slow_falling"}
(long|extended) slow fall[ing] = - {"Potion": "minecraft:long_slow_falling"}
potions after components:
minecraft version = 1.20.5 or newer
{potion types}:
{default} = - # Match all potions
water = - {minecraft:potion_contents={"potion":"minecraft:water"}}
thick = - {minecraft:potion_contents={"potion":"minecraft:thick"}}
mundane = - {minecraft:potion_contents={"potion":"minecraft:mundane"}}
awkward = - {minecraft:potion_contents={"potion":"minecraft:awkward"}}
night vision = - {minecraft:potion_contents={"potion":"minecraft:night_vision"}}
(long|extended) night vision = - {minecraft:potion_contents={"potion":"minecraft:long_night_vision"}}
invisibility = - {minecraft:potion_contents={"potion":"minecraft:invisibility"}}
(long|extended) invisibility = - {minecraft:potion_contents={"potion":"minecraft:long_invisibility"}}
(leaping|jumping) = - {minecraft:potion_contents={"potion":"minecraft:leaping"}}
(long|extended) (leaping|jumping) = - {minecraft:potion_contents={"potion":"minecraft:long_leaping"}}
(strong|upgraded|level 2) (leaping|jumping) = - {minecraft:potion_contents={"potion":"minecraft:strong_leaping"}}
fire resistance = - {minecraft:potion_contents={"potion":"minecraft:fire_resistance"}}
(long|extended) fire resistance = - {minecraft:potion_contents={"potion":"minecraft:long_fire_resistance"}}
(swiftness|speed) = - {minecraft:potion_contents={"potion":"minecraft:swiftness"}}
(extended|long) (swiftness|speed) = - {minecraft:potion_contents={"potion":"minecraft:long_swiftness"}}
(strong|upgraded|level 2) (swiftness|speed) = - {minecraft:potion_contents={"potion":"minecraft:strong_swiftness"}}
slow[ness] = - {minecraft:potion_contents={"potion":"minecraft:slowness"}}
(long|extended) slow[ness] = - {minecraft:potion_contents={"potion":"minecraft:long_slowness"}}
(strong|upgraded|level 2) slow[ness] = - {minecraft:potion_contents={"potion":"minecraft:strong_slowness"}}
water breathing = - {minecraft:potion_contents={"potion":"minecraft:water_breathing"}}
(long|extended) water breathing = - {minecraft:potion_contents={"potion":"minecraft:long_water_breathing"}}
[instant] heal(th|ing) = - {minecraft:potion_contents={"potion":"minecraft:healing"}}
(strong|upgraded|level 2) [instant] heal(th|ing) = - {minecraft:potion_contents={"potion":"minecraft:strong_healing"}}
[instant] (harming|damage) = - {minecraft:potion_contents={"potion":"minecraft:harming"}}
(strong|upgraded|level 2) [instant] (harming|damage) = - {minecraft:potion_contents={"potion":"minecraft:strong_harming"}}
poison[ing] = - {minecraft:potion_contents={"potion":"minecraft:poison"}}
(long|extended) poison[ing] = - {minecraft:potion_contents={"potion":"minecraft:long_poison"}}
(strong|upgraded|level 2) poison[ing] = - {minecraft:potion_contents={"potion":"minecraft:strong_poison"}}
regen[eration] = - {minecraft:potion_contents={"potion":"minecraft:regeneration"}}
(long|extended) regen[eration] = - {minecraft:potion_contents={"potion":"minecraft:long_regeneration"}}
(strong|upgraded|level 2) regen[eration] = - {minecraft:potion_contents={"potion":"minecraft:strong_regeneration"}}
strength = - {minecraft:potion_contents={"potion":"minecraft:strength"}}
(long|extended) strength = - {minecraft:potion_contents={"potion":"minecraft:long_strength"}}
(strong|upgraded|level 2) strength = - {minecraft:potion_contents={"potion":"minecraft:strong_strength"}}
weak(ness|ening) = - {minecraft:potion_contents={"potion":"minecraft:weakness"}}
(long|extended) weak(ness|ening) = - {minecraft:potion_contents={"potion":"minecraft:long_weakness"}}
luck = - {minecraft:potion_contents={"potion":"minecraft:luck"}}
turtle master = - {minecraft:potion_contents={"potion":"minecraft:turtle_master"}}
(long|extended) turtle master = - {minecraft:potion_contents={"potion":"minecraft:long_turtle_master"}}
(strong|upgraded|level 2) turtle master = - {minecraft:potion_contents={"potion":"minecraft:strong_turtle_master"}}
slow fall[ing] = - {minecraft:potion_contents={"potion":"minecraft:slow_falling"}}
(long|extended) slow fall[ing] = - {minecraft:potion_contents={"potion":"minecraft:long_slow_falling"}}