Skip to content

Commit c293706

Browse files
committed
💀 ❓
1 parent 4d52878 commit c293706

34 files changed

+846
-56
lines changed

src/main/java/com/okcoder1/matrixblocks/ModBlocks.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
44
import net.minecraft.block.*;
5-
import net.minecraft.block.BlockSetType;
65
import net.minecraft.item.Item;
76
import net.minecraft.item.ItemGroup;
87
import net.minecraft.item.ItemStack;
@@ -69,11 +68,22 @@ public static Block register(Block block, String name, boolean shouldRegisterIte
6968
);
7069

7170
public static final Block MATRIX_BUTTON = register(
72-
new ButtonBlock(BlockSetType.IRON, 15, FabricBlockSettings.copyOf(Blocks.IRON_BLOCK)),
71+
new ButtonBlock(BlockSetType.COPPER, 15, FabricBlockSettings.copyOf(Blocks.COPPER_BLOCK)),
7372
"matrix_button",
7473
true
7574
);
7675

76+
public static final Block MATRIX_PRESSURE_PLATE = register(
77+
new PressurePlateBlock(BlockSetType.COPPER, AbstractBlock.Settings.create().sounds(BlockSoundGroup.ANCIENT_DEBRIS)),
78+
"matrix_pressure_plate",
79+
true
80+
);
81+
public static final Block FADING_MATRIX_PRESSURE_PLATE = register(
82+
new PressurePlateBlock(BlockSetType.COPPER, AbstractBlock.Settings.create().sounds(BlockSoundGroup.ANCIENT_DEBRIS)),
83+
"fading_matrix_pressure_plate",
84+
true
85+
);
86+
7787
public static void initialize() {
7888
Registry.register(Registries.ITEM_GROUP, CUSTOM_ITEM_GROUP_KEY, CUSTOM_ITEM_GROUP);
7989
ItemGroupEvents.modifyEntriesEvent(CUSTOM_ITEM_GROUP_KEY).register(itemGroup -> {
@@ -84,6 +94,8 @@ public static void initialize() {
8494
itemGroup.add(ModBlocks.MATRIX_SLAB);
8595
itemGroup.add(ModBlocks.FADING_MATRIX_SLAB);
8696
itemGroup.add(ModBlocks.MATRIX_BUTTON);
97+
itemGroup.add(ModBlocks.MATRIX_PRESSURE_PLATE);
98+
itemGroup.add(ModBlocks.FADING_MATRIX_PRESSURE_PLATE);
8799
});
88100
}
89101
}

src/main/resources/assets/matrix-blocks/blockbench/fading_matrix_pressure_plate.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/main/resources/assets/matrix-blocks/blockbench/fading_matrix_pressure_plate_down.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/main/resources/assets/matrix-blocks/blockbench/fading_matrix_slab.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/main/resources/assets/matrix-blocks/blockbench/fading_matrix_stairs.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/main/resources/assets/matrix-blocks/blockbench/matrix_pressure_plate.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/main/resources/assets/matrix-blocks/blockbench/matrix_pressure_plate_down.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

src/main/resources/assets/matrix-blocks/blockbench/matrix_stairs.bbmodel

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"variants": {
3+
"powered=false": { "model": "matrix-blocks:block/fading_matrix_pressure_plate" },
4+
"powered=true": { "model": "matrix-blocks:block/fading_matrix_pressure_plate_down" }
5+
}
6+
}
Lines changed: 205 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,209 @@
11
{
22
"variants": {
3-
"": { "model": "matrix-blocks:block/fading_matrix_stairs" }
3+
"facing=east,half=bottom,shape=inner_left": {
4+
"model": "matrix-blocks:block/fading_matrix_stairs",
5+
"y": 270,
6+
"uvlock": true
7+
},
8+
"facing=east,half=bottom,shape=inner_right": {
9+
"model": "matrix-blocks:block/fading_matrix_stairs"
10+
},
11+
"facing=east,half=bottom,shape=outer_left": {
12+
"model": "matrix-blocks:block/fading_matrix_stairs",
13+
"y": 270,
14+
"uvlock": true
15+
},
16+
"facing=east,half=bottom,shape=outer_right": {
17+
"model": "matrix-blocks:block/fading_matrix_stairs"
18+
},
19+
"facing=east,half=bottom,shape=straight": {
20+
"model": "matrix-blocks:block/fading_matrix_stairs"
21+
},
22+
"facing=east,half=top,shape=inner_left": {
23+
"model": "matrix-blocks:block/fading_matrix_stairs",
24+
"x": 180,
25+
"uvlock": true
26+
},
27+
"facing=east,half=top,shape=inner_right": {
28+
"model": "matrix-blocks:block/fading_matrix_stairs",
29+
"x": 180,
30+
"y": 90,
31+
"uvlock": true
32+
},
33+
"facing=east,half=top,shape=outer_left": {
34+
"model": "matrix-blocks:block/fading_matrix_stairs",
35+
"x": 180,
36+
"uvlock": true
37+
},
38+
"facing=east,half=top,shape=outer_right": {
39+
"model": "matrix-blocks:block/fading_matrix_stairs",
40+
"x": 180,
41+
"y": 90,
42+
"uvlock": true
43+
},
44+
"facing=east,half=top,shape=straight": {
45+
"model": "matrix-blocks:block/fading_matrix_stairs",
46+
"x": 180,
47+
"uvlock": true
48+
},
49+
"facing=north,half=bottom,shape=inner_left": {
50+
"model": "matrix-blocks:block/fading_matrix_stairs",
51+
"y": 180,
52+
"uvlock": true
53+
},
54+
"facing=north,half=bottom,shape=inner_right": {
55+
"model": "matrix-blocks:block/fading_matrix_stairs",
56+
"y": 270,
57+
"uvlock": true
58+
},
59+
"facing=north,half=bottom,shape=outer_left": {
60+
"model": "matrix-blocks:block/fading_matrix_stairs",
61+
"y": 180,
62+
"uvlock": true
63+
},
64+
"facing=north,half=bottom,shape=outer_right": {
65+
"model": "matrix-blocks:block/fading_matrix_stairs",
66+
"y": 270,
67+
"uvlock": true
68+
},
69+
"facing=north,half=bottom,shape=straight": {
70+
"model": "matrix-blocks:block/fading_matrix_stairs",
71+
"y": 270,
72+
"uvlock": true
73+
},
74+
"facing=north,half=top,shape=inner_left": {
75+
"model": "matrix-blocks:block/fading_matrix_stairs",
76+
"x": 180,
77+
"y": 270,
78+
"uvlock": true
79+
},
80+
"facing=north,half=top,shape=inner_right": {
81+
"model": "matrix-blocks:block/fading_matrix_stairs",
82+
"x": 180,
83+
"uvlock": true
84+
},
85+
"facing=north,half=top,shape=outer_left": {
86+
"model": "matrix-blocks:block/fading_matrix_stairs",
87+
"x": 180,
88+
"y": 270,
89+
"uvlock": true
90+
},
91+
"facing=north,half=top,shape=outer_right": {
92+
"model": "matrix-blocks:block/fading_matrix_stairs",
93+
"x": 180,
94+
"uvlock": true
95+
},
96+
"facing=north,half=top,shape=straight": {
97+
"model": "matrix-blocks:block/fading_matrix_stairs",
98+
"x": 180,
99+
"y": 270,
100+
"uvlock": true
101+
},
102+
"facing=south,half=bottom,shape=inner_left": {
103+
"model": "matrix-blocks:block/fading_matrix_stairs"
104+
},
105+
"facing=south,half=bottom,shape=inner_right": {
106+
"model": "matrix-blocks:block/fading_matrix_stairs",
107+
"y": 90,
108+
"uvlock": true
109+
},
110+
"facing=south,half=bottom,shape=outer_left": {
111+
"model": "matrix-blocks:block/fading_matrix_stairs"
112+
},
113+
"facing=south,half=bottom,shape=outer_right": {
114+
"model": "matrix-blocks:block/fading_matrix_stairs",
115+
"y": 90,
116+
"uvlock": true
117+
},
118+
"facing=south,half=bottom,shape=straight": {
119+
"model": "matrix-blocks:block/fading_matrix_stairs",
120+
"y": 90,
121+
"uvlock": true
122+
},
123+
"facing=south,half=top,shape=inner_left": {
124+
"model": "matrix-blocks:block/fading_matrix_stairs",
125+
"x": 180,
126+
"y": 90,
127+
"uvlock": true
128+
},
129+
"facing=south,half=top,shape=inner_right": {
130+
"model": "matrix-blocks:block/fading_matrix_stairs",
131+
"x": 180,
132+
"y": 180,
133+
"uvlock": true
134+
},
135+
"facing=south,half=top,shape=outer_left": {
136+
"model": "matrix-blocks:block/fading_matrix_stairs",
137+
"x": 180,
138+
"y": 90,
139+
"uvlock": true
140+
},
141+
"facing=south,half=top,shape=outer_right": {
142+
"model": "matrix-blocks:block/fading_matrix_stairs",
143+
"x": 180,
144+
"y": 180,
145+
"uvlock": true
146+
},
147+
"facing=south,half=top,shape=straight": {
148+
"model": "matrix-blocks:block/fading_matrix_stairs",
149+
"x": 180,
150+
"y": 90,
151+
"uvlock": true
152+
},
153+
"facing=west,half=bottom,shape=inner_left": {
154+
"model": "matrix-blocks:block/fading_matrix_stairs",
155+
"y": 90,
156+
"uvlock": true
157+
},
158+
"facing=west,half=bottom,shape=inner_right": {
159+
"model": "matrix-blocks:block/fading_matrix_stairs",
160+
"y": 180,
161+
"uvlock": true
162+
},
163+
"facing=west,half=bottom,shape=outer_left": {
164+
"model": "matrix-blocks:block/fading_matrix_stairs",
165+
"y": 90,
166+
"uvlock": true
167+
},
168+
"facing=west,half=bottom,shape=outer_right": {
169+
"model": "matrix-blocks:block/fading_matrix_stairs",
170+
"y": 180,
171+
"uvlock": true
172+
},
173+
"facing=west,half=bottom,shape=straight": {
174+
"model": "matrix-blocks:block/fading_matrix_stairs",
175+
"y": 180,
176+
"uvlock": true
177+
},
178+
"facing=west,half=top,shape=inner_left": {
179+
"model": "matrix-blocks:block/fading_matrix_stairs",
180+
"x": 180,
181+
"y": 180,
182+
"uvlock": true
183+
},
184+
"facing=west,half=top,shape=inner_right": {
185+
"model": "matrix-blocks:block/fading_matrix_stairs",
186+
"x": 180,
187+
"y": 270,
188+
"uvlock": true
189+
},
190+
"facing=west,half=top,shape=outer_left": {
191+
"model": "matrix-blocks:block/fading_matrix_stairs",
192+
"x": 180,
193+
"y": 180,
194+
"uvlock": true
195+
},
196+
"facing=west,half=top,shape=outer_right": {
197+
"model": "matrix-blocks:block/fading_matrix_stairs",
198+
"x": 180,
199+
"y": 270,
200+
"uvlock": true
201+
},
202+
"facing=west,half=top,shape=straight": {
203+
"model": "matrix-blocks:block/fading_matrix_stairs",
204+
"x": 180,
205+
"y": 180,
206+
"uvlock": true
207+
}
4208
}
5209
}

0 commit comments

Comments
 (0)