-
Notifications
You must be signed in to change notification settings - Fork 36
/
redstone.sk
301 lines (254 loc) · 12.9 KB
/
redstone.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
# Redstone category items whose IDs have never changed or whose differences across versions can be
# defined purely by variations.
unchanged redstone:
# Redstone block in building
redstone (wire|dust block)¦s = minecraft:redstone_wire
redstone [(dust|item)¦s] = minecraft:redstone
any redstone item = redstone block, redstone item
stone pressure plate¦s = minecraft:stone_pressure_plate
(gold[en]|light weighted) pressure plate¦s = minecraft:light_weighted_pressure_plate
(iron|heavy weighted) pressure plate¦s = minecraft:heavy_weighted_pressure_plate
(tripwire|placed string)¦s = minecraft:tripwire
{orientable} dispenser¦s = minecraft:dispenser
{orientable} dropper¦s = minecraft:dropper
tnt [block¦s] = minecraft:tnt[relatedEntity=primed tnt]
village and pillage update:
minecraft version = 1.14 or newer
{powerable} {directional} lectern = minecraft:lectern
redstone before flattening:
minecraft version = 1.12.2 or older
# Repeater
unpowered [redstone] repeater¦s = minecraft:unpowered_repeater
powered [redstone] repeater¦s = minecraft:powered_repeater
[redstone] repeater item¦s = minecraft:repeater
[any] [redstone] repeater¦s = unpowered repeater, powered repeater, repeater item
# Comparator. Note that the powered_comparator block isn't even used.
powered comparator = minecraft:powered_comparator
[unpowered] [redstone] comparator [item]¦s = minecraft:comparator
powered [redstone] comparator¦s = minecraft:comparator {Damage:4}
any [redstone] comparator¦s = unpowered comparator, powered comparator
# Buttons & levers
{attached toggleable} [oak] wood button¦s = minecraft:wooden_button
{attached toggleable} stone button¦s = minecraft:stone_button
[any] button¦s = stone button, wood button
[redstone] lever¦s = minecraft:lever
# Pressure plates
[oak] wood pressure plate¦s = minecraft:wooden_pressure_plate
[any] pressure plate¦s = stone pressure plate, wood pressure plate, gold pressure plate, iron pressure plate
# Trapdoors
iron trapdoor¦s = minecraft:iron_trapdoor
[oak] wood trapdoor¦s = minecraft:trapdoor
[any] trapdoor¦s = wood trapdoor, iron trapdoor
# Fences and doors
{gate state}:
{default} = - {Damage:0}
[closed] south(ward| facing) = - {Damage:0}
[closed] west(ward| facing) = - {Damage:1}
[closed] north(ward| facing) = - {Damage:2}
[closed] east(ward| facing) = - {Damage:3}
open south(ward| facing) = - {Damage:4}
open west(ward| facing) = - {Damage:5}
open north(ward| facing) = - {Damage:6}
open east(ward| facing) = - {Damage:7}
{gate state} oak [wood] [fence] gate¦s = minecraft:fence_gate
{gate state} spruce [wood] [fence] gate¦s = minecraft:spruce_fence_gate
{gate state} birch [wood] [fence] gate¦s = minecraft:birch_fence_gate
{gate state} jungle [wood] [fence] gate¦s = minecraft:jungle_fence_gate
{gate state} acacia [wood] [fence] gate¦s = minecraft:acacia_fence_gate
{gate state} dark oak [wood] [fence] gate¦s = minecraft:dark_oak_fence_gate
[any] [fence] gate¦s = oak gate, spruce gate, birch gate, jungle gate, acacia gate, dark oak gate
{door state}:
{default} = - {Damage:0}
[closed] east(ward| facing) [bottom] = - {Damage:0}
[closed] south(ward| facing) [bottom] = - {Damage:1}
[closed] west(ward| facing) [bottom] = - {Damage:2}
[closed] north(ward| facing) [bottom] = - {Damage:3}
open east(ward| facing) [bottom] = - {Damage:4}
open south(ward| facing) [bottom] = - {Damage:5}
open west(ward| facing) [bottom] = - {Damage:6}
open north(ward| facing) [bottom] = - {Damage:7}
left-hinged [closed] top = - {Damage:8}
right-hinged [closed] top = - {Damage:9}
left-hinged powered [closed] top = - {Damage:10}
right-hinged powered [closed] top = - {Damage:11}
# Door blocks
{door state} oak [wood] door¦s = minecraft:wooden_door_block
{door state} iron door¦s = minecraft:iron_door_block
{door state} spruce [wood] door¦s = minecraft:spruce_door_block
{door state} birch [wood] door¦s = minecraft:birch_door_block
{door state} jungle [wood] door¦s = minecraft:jungle_door_block
{door state} acacia [wood] door¦s = minecraft:acacia_door_block
{door state} dark oak [wood] door¦s = minecraft:dark_oak_door_block
# Door items
oak [wood] door item¦s = minecraft:wooden_door
iron door item¦s = minecraft:iron_door
spruce [wood] door item¦s = minecraft:spruce_door
birch [wood] door item¦s = minecraft:birch_door
jungle [wood] door item¦s = minecraft:jungle_door
acacia [wood] door item¦s = minecraft:acacia_door
dark oak [wood] door item¦s = minecraft:dark_oak_door
[any] wood[en] door item¦s = oak door item, spruce door item, birch door item, jungle door item, acacia door item, dark oak door item
[any] wood[en] door¦s = oak door, spruce door, birch door, jungle door, acacia door, dark oak door
[any] door item¦s = iron door item, any wood door item
[any] door¦s = iron door, any wood door
# Redstone torches
{attached} [lit] redstone torch¦es = minecraft:redstone_torch
{attached} unlit redstone torch¦es = minecraft:unlit_redstone_torch
any redstone torch¦es = lit redstone torch, unlit redstone torch
# Redstone lamp
lit redstone lamp¦s = minecraft:lit_redstone_lamp
[unlit] redstone lamp¦s = minecraft:redstone_lamp
any redstone lamp¦s = lit redstone lamp, unlit redstone lamp
# Pistons
{orientable} [(normal|non-sticky)] piston¦s = minecraft:piston
{orientable} sticky piston¦s = minecraft:sticky_piston
{orientable} piston head¦s = minecraft:piston_head
# Misc activatables/redstone components
note block¦s = minecraft:noteblock
tripwire hook¦s = minecraft:tripwire_hook
(piston extension|block 36|moving piston|moving block¦s) = minecraft:piston_head
hopper¦s = minecraft:hopper
(normal|uninverted) daylight (detector|sensor)¦s = minecraft:daylight_detector
inverted daylight (detector|sensor)¦s = minecraft:daylight_detector_inverted
redstone after flattening:
minecraft version = 1.13 or newer
# Logic pieces
{comparator mode}:
{default} = -
(comparison|compare mode) = -[mode=compare]
(subtraction|subtract mode) = -[mode=subtract]
{powerable} {directional} [redstone] repeater¦s = minecraft:repeater
{powerable} {directional} {comparator mode} [redstone] comparator [item]¦s = minecraft:comparator
# Buttons
{powerable} {directional} {wood type} {attached} button¦s = -button
{powerable} {directional} {attached} stone button¦s = minecraft:stone_button
[any] wood[en] button¦s = oak button, spruce button, birch button, jungle button, acacia button, dark oak button
# Pressure plates
{powerable} {wood type} pressure plate¦s = -pressure_plate
[any] wood[en] pressure plate¦s = oak pressure plate, spruce pressure plate, birch pressure plate, jungle pressure plate, acacia pressure plate, dark oak pressure plate
[any] pressure plate¦s = stone pressure plate, gold pressure plate, iron pressure plate, any wooden pressure plate
# Redstone torches
{lightable} redstone [floor] torch¦es = minecraft:redstone_torch
{directional} {lightable} redstone wall torch¦es = minecraft:redstone_wall_torch
[any] redstone floor torch¦es = lit redstone floor torch, unlit redstone floor torch
[any] redstone wall torch¦es = lit redstone wall torch, unlit redstone wall torch
[any] lit redstone torch¦es = lit redstone floor torch, lit redstone wall torch
[any] unlit redstone torch¦es = unlit redstone floor torch, unlit redstone wall torch
any redstone torch = any redstone floor torch, any redstone wall torch
# Redstone lamp
{lightable} redstone lamp¦s = minecraft:redstone_lamp
[any] redstone lamp¦s = lit redstone lamp, unlit redstone lamp
# Note blocks
{instrumental}:
{default} = -
xylophone = -[instrument=xylophone]
chime = -[instrument=chime]
guitar = -[instrument=guitar]
bell = -[instrument=bell]
flute = -[instrument=flute]
bass = -[instrument=bass]
hat = -[instrument=hat]
snare = -[instrument=snare]
basedrum = -[instrument=basedrum]
harp = -[instrument=harp]
{powerable} {instrumental} note block¦s = minecraft:note_block
# Hoppers can't point up, and orientable includes up (and it's the default state)
{hopper direction}:
{default} = -
down(ward| facing) = -[facing=down]
north(ward| facing) = -[facing=north]
south(ward| facing) = -[facing=south]
west(ward| facing) = -[facing=west]
east(ward| facing) = -[facing=east]
{enableable}:
{default} = -
enabled = -[enabled=true]
disabled = -[enabled=false]
{hopper direction} {enableable} hopper¦s = minecraft:hopper
# Pistons
{extendable}:
{default} = -
(unextended|retracted) = -[extended=false]
extended = -[extended=true]
{orientable} {extendable} [(normal|non-sticky)] piston¦s = minecraft:piston
{orientable} {extendable} sticky piston¦s = minecraft:sticky_piston
{orientable} piston head¦s = minecraft:piston_head
(piston extension|block 36|moving piston|moving block¦s) = minecraft:moving_piston
# Misc activatables
{directional} {powerable} tripwire hook¦s = minecraft:tripwire_hook
[(normal|uninverted)] daylight (detector|sensor)¦s = minecraft:daylight_detector[inverted=false]
inverted daylight (detector|sensor)¦s = minecraft:daylight_detector[inverted=true]
{powerable} {directional} {attached} [redstone] lever¦s = minecraft:lever
unstable tnt:
minecraft version = 1.13.1 or newer
stable tnt [block¦s] = minecraft:tnt[unstable=false]
unstable tnt [block¦s] = minecraft:tnt[unstable=true]
old observer:
minecraft version = 1.11 to 1.12.2
{orientable} [redstone] observer¦s = minecraft:observer
new observer:
minecraft version = 1.13 or newer
{powerable} {orientable} [redstone] observer¦s = minecraft:observer
categories:
[any] daylight (detector|sensor)¦s = normal daylight detector, inverted daylight detector
[any] fence part = any fence, any gate # Fences come from decoration.sk
nether update:
minecraft version = 1.16 or newer
(archery|redstone|hay|bullseye) target [block]¦s = minecraft:target
{powerable} polished blackstone pressure plate¦s = minecraft:polished_blackstone_pressure_plate
{powerable} {directional} {attached} polished blackstone button¦s = minecraft:polished_blackstone_button
[any] pressure plate¦s = stone pressure plate, gold pressure plate, iron pressure plate, any wooden pressure plate, crimson pressure plate, warped pressure plate, polished blackstone pressure plate
[any] wood[en] button¦s = any wooden button, crimson button, warped button, polished blackstone button
[any] [fence] gate¦s = any fence gate, crimson gate, warped gate
[any] wood[en] door¦s = any wooden door, crimson door, warped door
[any] wood[en] trapdoor¦s = any wooden trapdoor, crimson trapdoor, warped trapdoor
caves and cliffs update part 1:
minecraft version = 1.17 or newer
{waterloggable} {powerable} {orientable} lightning rod¦s = minecraft:lightning_rod
# Sculk sencor has now placed on redstone since 1.19, but it existed since 1.17
{sculk sensor activity}:
{default} = -
active = -[sculk_sensor_phase=active]
cooldown = -[sculk_sensor_phase=cooldown]
{waterloggable} {sculk sensor activity} sculk sensor¦s = minecraft:sculk_sensor
global post flattening:
minecraft version = 1.13 or newer
[any] door¦s = iron door, any wooden door
[any] button¦s = stone button, any wooden button
[any] trapdoor¦s = iron trapdoor, any wooden trapdoor
the wild update:
minecraft version = 1.19 or newer
[any] wood[en] button¦s = wood button, mangrove button
[any] button¦s = any button, mangrove button
[any] pressure plate¦s = pressure plate, mangrove pressure plate
[any] [fence] gate¦s = gate, mangrove gate
[any] wood[en] trapdoor¦s = wood trapdoor, mangrove trapdoor
[any] trapdoor¦s = any trapdoor, mangrove trapdoor
[any] wood[en] door¦s = any wood door, mangrove door
[any] door¦s = any door, mangrove door
[any] fence¦s = any fence, mangrove fence
[any] wood[en] pressure plate¦s = any wooden pressure plate, mangrove pressure plate
trails and tales update:
minecraft version = 1.20 or newer
# Cherry wood
[any] wood[en] button¦s = wood button, cherry button
[any] button¦s = any button, cherry button
[any] pressure plate¦s = pressure plate, cherry pressure plate
[any] [fence] gate¦s = gate, cherry gate
[any] wood[en] trapdoor¦s = wood trapdoor, cherry trapdoor
[any] trapdoor¦s = any trapdoor, cherry trapdoor
[any] wood[en] door¦s = any wood door, cherry door
[any] door¦s = any door, cherry door
[any] fence¦s = any fence, cherry fence
[any] wood[en] pressure plate¦s = any wooden pressure plate, cherry pressure plate
# Bamboo wood
[any] wood[en] button¦s = wood button, bamboo button
[any] button¦s = any button, bamboo button
[any] pressure plate¦s = pressure plate, bamboo pressure plate
[any] [fence] gate¦s = gate, bamboo gate
[any] wood[en] trapdoor¦s = wood trapdoor, bamboo trapdoor
[any] trapdoor¦s = any trapdoor, bamboo trapdoor
[any] wood[en] door¦s = any wood door, bamboo door
[any] door¦s = any door, bamboo door
[any] fence¦s = any fence, bamboo fence
[any] wood[en] pressure plate¦s = any wooden pressure plate, bamboo pressure plate