Skip to content

Commit

Permalink
added all model and blockstates files needed for penebrium blocks
Browse files Browse the repository at this point in the history
(at least I hope)
bug: penebrium shroom stem invisible
  • Loading branch information
warior456 committed Feb 5, 2024
1 parent 59c016e commit 6192661
Show file tree
Hide file tree
Showing 17 changed files with 294 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,120 @@
{
"variants": {
"": {
"model": "sculk_depths:block/penebrium_shroom_block"
"multipart": [
{
"apply": {
"model": "sculk_depths:block/penebrium_shroom_block"
},
"when": {
"north": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_shroom_block",
"uvlock": true,
"y": 90
},
"when": {
"east": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_shroom_block",
"uvlock": true,
"y": 180
},
"when": {
"south": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_shroom_block",
"uvlock": true,
"y": 270
},
"when": {
"west": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_shroom_block",
"uvlock": true,
"x": 270
},
"when": {
"up": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_shroom_block",
"uvlock": true,
"x": 90
},
"when": {
"down": "true"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside"
},
"when": {
"north": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"y": 90
},
"when": {
"east": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"y": 180
},
"when": {
"south": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"y": 270
},
"when": {
"west": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"x": 270
},
"when": {
"up": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"x": 90
},
"when": {
"down": "false"
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,120 @@
{
"variants": {
"": {
"model": "sculk_depths:block/penebrium_spore_block"
"multipart": [
{
"apply": {
"model": "sculk_depths:block/penebrium_spore_block"
},
"when": {
"north": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_spore_block",
"uvlock": true,
"y": 90
},
"when": {
"east": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_spore_block",
"uvlock": true,
"y": 180
},
"when": {
"south": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_spore_block",
"uvlock": true,
"y": 270
},
"when": {
"west": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_spore_block",
"uvlock": true,
"x": 270
},
"when": {
"up": "true"
}
},
{
"apply": {
"model": "sculk_depths:block/penebrium_spore_block",
"uvlock": true,
"x": 90
},
"when": {
"down": "true"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside"
},
"when": {
"north": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"y": 90
},
"when": {
"east": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"y": 180
},
"when": {
"south": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"y": 270
},
"when": {
"west": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"x": 270
},
"when": {
"up": "false"
}
},
{
"apply": {
"model": "minecraft:block/mushroom_block_inside",
"uvlock": false,
"x": 90
},
"when": {
"down": "false"
}
}
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"parent": "minecraft:block/template_single_face",
"textures": {
"all": "sculk_depths:block/penebrium_shroom_block"
"texture": "sculk_depths:block/penebrium_shroom_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "sculk_depths:block/penebrium_shroom_block"
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"parent": "minecraft:block/template_single_face",
"textures": {
"all": "sculk_depths:block/penebrium_spore_block"
"texture": "sculk_depths:block/penebrium_spore_block"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "sculk_depths:block/penebrium_spore_block"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"parent": "sculk_depths:block/penebrium_shroom_block"
"parent": "sculk_depths:block/penebrium_shroom_block_inventory"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"parent": "sculk_depths:block/penebrium_spore_block"
"parent": "sculk_depths:block/penebrium_spore_block_inventory"
}
6 changes: 3 additions & 3 deletions src/main/java/net/ugi/sculk_depths/block/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -368,16 +368,16 @@ public class ModBlocks {
new MushroomPlantBlock(FabricBlockSettings.copyOf(Blocks.MUSHROOM_STEM).luminance(5).emissiveLighting(AbstractBlock.AbstractBlockState::isFullCube).noCollision(), ModConfiguredFeatures.PENEBRIUM_SHROOM), ModItemGroup.SCULK_DEPTHS);

public static final Block PENEBRIUM_SHROOM_BLOCK = registerBlock("penebrium_shroom_block",
new CrystalBlock(DyeColor.WHITE, FabricBlockSettings.copyOf(Blocks.MUSHROOM_STEM).luminance(5).emissiveLighting(AbstractBlock.AbstractBlockState::isFullCube)), ModItemGroup.SCULK_DEPTHS);
new MushroomBlock( FabricBlockSettings.copyOf(Blocks.MUSHROOM_STEM).luminance(5).emissiveLighting(AbstractBlock.AbstractBlockState::isFullCube)), ModItemGroup.SCULK_DEPTHS);

public static final Block PENEBRIUM_SHROOM_STEM = registerBlock("penebrium_shroom_stem",
new MushroomBlock(FabricBlockSettings.copyOf(Blocks.MUSHROOM_STEM).nonOpaque()), ModItemGroup.SCULK_DEPTHS);
new PillarBlock(FabricBlockSettings.copyOf(Blocks.MUSHROOM_STEM).nonOpaque()), ModItemGroup.SCULK_DEPTHS);

public static final Block PENEBRIUM_SPORE_BLOCK = registerBlock("penebrium_spore_block",
new SporeBlock(FabricBlockSettings.copyOf(Blocks.MUSHROOM_STEM).luminance(5).emissiveLighting(AbstractBlock.AbstractBlockState::isFullCube)), ModItemGroup.SCULK_DEPTHS);

//misc
public static final CustomPortalBlock SCULK_DEPTHS_PORTAL = (CustomPortalBlock) registerBlock("sculk_depths_portal",
public static final CustomPortalBlock SCULK_DEPTHS_PORTAL = (CustomPortalBlock) registerBlockWithoutBlockItem("sculk_depths_portal",
new CustomPortalBlock(FabricBlockSettings.copyOf(Blocks.NETHER_PORTAL).luminance(6).dropsNothing().noCollision().strength(-1.0f,3600000.0f)),ModItemGroup.SCULK_DEPTHS );

//fluids
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.MushroomBlock;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.function.BooleanBiFunction;
import net.minecraft.util.math.BlockPos;
Expand All @@ -24,7 +25,7 @@
import java.util.function.BiPredicate;


public class SporeBlock extends Block {
public class SporeBlock extends MushroomBlock {

private static final VoxelShape DRIP_COLLISION_SHAPE = Block.createCuboidShape(6.0, 0.0, 6.0, 10.0, 16.0, 10.0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public void generateBlockStateModels(BlockStateModelGenerator blockStateModelGen
BlockStateModelGenerator.BlockTexturePool driedValtroxPlankPool = blockStateModelGenerator.registerCubeAllModelTexturePool(ModBlocks.DRIED_VALTROX_PLANKS);
BlockStateModelGenerator.BlockTexturePool petrifiedValtroxPlankPool = blockStateModelGenerator.registerCubeAllModelTexturePool(ModBlocks.PETRIFIED_VALTROX_SLATES);

blockStateModelGenerator.registerSimpleCubeAll(ModBlocks.PENEBRIUM_SHROOM_BLOCK);
blockStateModelGenerator.registerSimpleCubeAll(ModBlocks.PENEBRIUM_SPORE_BLOCK);

blockStateModelGenerator.registerSimpleCubeAll(ModBlocks.QUAZARITH_BLOCK);
blockStateModelGenerator.registerMushroomBlock(ModBlocks.PENEBRIUM_SHROOM_BLOCK);
blockStateModelGenerator.registerMushroomBlock(ModBlocks.PENEBRIUM_SPORE_BLOCK);


valtroxPlankPool.fenceGate(ModBlocks.VALTROX_FENCE_GATE);
valtroxPlankPool.family(BlockFamilies.register(ModBlocks.VALTROX_PLANKS).sign(ModBlocks.VALTROX_SIGN, ModBlocks.VALTROX_WALL_SIGN).build());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"variants": {
"": {
"model": "sculk_depths:block/penebrium_shroom"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cross",
"textures": {
"cross": "sculk_depths:block/penebrium_shroom"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/template_single_face",
"textures": {
"texture": "sculk_depths:block/penebrium_stem"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:block/cube_all",
"textures": {
"all": "sculk_depths:block/penebrium_stem"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "sculk_depths:block/penebrium_shroom"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "sculk_depths:block/penebrium_shroom_stem_inventory"
}

0 comments on commit 6192661

Please sign in to comment.