Skip to content

Commit

Permalink
fix mineability of planet stone blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
screret committed May 16, 2024
1 parent 9a35924 commit 269800a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"gcyr:dyson_solar_cell",
"gcyr:dyson_sphere_maintenance_port",
"gcyr:stainless_evaporation_casing",
"gcyr:mercury_rock",
"gcyr:venusian_regolith",
"gcyr:venus_rock",
"gcyr:moon_stone",
"gcyr:martian_rock",
"gcyr:airlock_door",
"gcyr:launch_pad",
"gcyr:seat"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"values": [
"gcyr:venus_sand",
"gcyr:moon_sand",
"gcyr:mars_regolith"
]
}
8 changes: 8 additions & 0 deletions src/main/java/argent_matter/gcyr/common/data/GCyRBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public class GCyRBlocks {
.initialProperties(() -> Blocks.STONE)
.properties(properties -> properties.mapColor(MapColor.COLOR_GRAY))
.blockstate(GCyRModels::randomRotatedModel)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.simpleItem()
.register();
//endregion
Expand All @@ -68,6 +69,7 @@ public class GCyRBlocks {
.initialProperties(() -> Blocks.SAND)
.properties(properties -> properties.mapColor(MapColor.TERRACOTTA_ORANGE))
.blockstate(GCyRModels::randomRotatedModel)
.tag(BlockTags.MINEABLE_WITH_SHOVEL)
.simpleItem()
.register();

Expand All @@ -76,6 +78,7 @@ public class GCyRBlocks {
.initialProperties(() -> Blocks.SANDSTONE)
.properties(properties -> properties.mapColor(MapColor.TERRACOTTA_GRAY))
.blockstate(GCyRModels::randomRotatedModel)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.simpleItem()
.register();

Expand All @@ -84,6 +87,7 @@ public class GCyRBlocks {
.initialProperties(() -> Blocks.STONE)
.properties(properties -> properties.mapColor(MapColor.TERRACOTTA_LIGHT_GRAY))
.blockstate(GCyRModels::randomRotatedModel)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.simpleItem()
.register();
//endregion
Expand All @@ -95,13 +99,15 @@ public class GCyRBlocks {
.initialProperties(() -> Blocks.STONE)
.properties(properties -> properties.mapColor(MapColor.COLOR_LIGHT_GRAY))
.blockstate(GCyRModels::randomRotatedModel)
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.simpleItem()
.register();

public static final BlockEntry<FallingBlock> MOON_SAND = REGISTRATE
.block("moon_sand", FallingBlock::new)
.initialProperties(() -> Blocks.GRAVEL)
.blockstate(GCyRModels::randomRotatedModel)
.tag(BlockTags.MINEABLE_WITH_SHOVEL)
.simpleItem()
.register();
//endregion
Expand All @@ -110,13 +116,15 @@ public class GCyRBlocks {
public static final BlockEntry<FallingBlock> MARS_REGOLITH = REGISTRATE
.block("mars_regolith", FallingBlock::new)
.initialProperties(() -> Blocks.RED_SAND)
.tag(BlockTags.MINEABLE_WITH_SHOVEL)
.simpleItem()
.register();

public static final BlockEntry<Block> MARTIAN_ROCK = REGISTRATE
.block("martian_rock", Block::new)
.initialProperties(() -> Blocks.STONE)
.properties(properties -> properties.mapColor(MapColor.COLOR_RED))
.tag(BlockTags.MINEABLE_WITH_PICKAXE)
.simpleItem()
.register();
// endregion
Expand Down

0 comments on commit 269800a

Please sign in to comment.