Skip to content

Commit

Permalink
Item Additions.
Browse files Browse the repository at this point in the history
+ Added in Black Military Crate
+ Added in White Military Crate
+ Added in Yellow Military Crate
+ Added in Green Military Crate
+ Added in 6 Variations of Concrete Road Blocks.
+ Fixed Decoration Mod.
  • Loading branch information
0xE69 committed Mar 29, 2024
1 parent 57edd33 commit a8d9c84
Show file tree
Hide file tree
Showing 44 changed files with 1,270 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,58 @@ public ItemStack makeIcon() {
() -> new BlockItem(DecorationBlocks.TOOL_4.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("military_plastic_crate_1x1",
() -> new BlockItem(DecorationBlocks.MILITARY_PLASTIC_CRATE_1X1.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> BLACK_MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("black_military_plastic_crate_1x1",
() -> new BlockItem(DecorationBlocks.BLACK_MILITARY_PLASTIC_CRATE_1X1.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> YELLOW_MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("yellow_military_plastic_crate_1x1",
() -> new BlockItem(DecorationBlocks.YELLOW_MILITARY_PLASTIC_CRATE_1X1.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> WHITE_MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("white_military_plastic_crate_1x1",
() -> new BlockItem(DecorationBlocks.WHITE_MILITARY_PLASTIC_CRATE_1X1.get(),
new Item.Properties().tab(TAB)));


public static final RegistryObject<BlockItem> CRACKED_CONCRETE_ROAD_BLOCK_WITH_STRIPE_LINE =
deferredRegister.register("cracked_concrete_road_block_with_stripe_line",
() -> new BlockItem(DecorationBlocks.CRACKED_CONCRETE_ROAD_BLOCK_WITH_STRIPE_LINE.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> CRACKED_CONCRETE_ROAD_BLOCK_WITH_RIPPED_STRIPE_LINE =
deferredRegister.register("cracked_concrete_road_block_with_ripped_stripe_line",
() -> new BlockItem(DecorationBlocks.CRACKED_CONCRETE_ROAD_BLOCK_WITH_RIPPED_STRIPE_LINE.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> CRACKED_CONCRETE_ROAD_BLOCK =
deferredRegister.register("cracked_concrete_road_block",
() -> new BlockItem(DecorationBlocks.CRACKED_CONCRETE_ROAD_BLOCK.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> CONCRETE_ROAD_BLOCK_WITH_STRIPE_LINE =
deferredRegister.register("concrete_road_block_with_stripe_line",
() -> new BlockItem(DecorationBlocks.CONCRETE_ROAD_BLOCK_WITH_STRIPE_LINE.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> CONCRETE_ROAD_BLOCK =
deferredRegister.register("concrete_road_block",
() -> new BlockItem(DecorationBlocks.CONCRETE_ROAD_BLOCK.get(),
new Item.Properties().tab(TAB)));

public static final RegistryObject<BlockItem> CONCRETE_ROAD_BLOCK_WITH_RIPPED_STRIPE_LINE =
deferredRegister.register("concrete_road_block_with_ripped_stripe_line",
() -> new BlockItem(DecorationBlocks.CONCRETE_ROAD_BLOCK_WITH_RIPPED_STRIPE_LINE.get(),
new Item.Properties().tab(TAB)));


public static final RegistryObject<BlockItem> TOILET =
deferredRegister.register("toilet",
() -> new BlockItem(DecorationBlocks.TOILET.get(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,25 @@ public class BlockShapes {
Block.box(0, 11, 6, 17, 15, 10),
Block.box(0, 0, 4, 17, 11, 12)));


public static final Function<Direction, VoxelShape> BLACK_MILITARY_PLASTIC_CRATE_1X1 =
rotatedOrientableShape(Block.box(0, 0, 0, 16, 17, 16));

public static final Function<Direction, VoxelShape> MILITARY_PLASTIC_CRATE_1X1 =
rotatedOrientableShape(Block.box(0, 0, 0, 16, 17, 16));

public static final Function<Direction, VoxelShape> YELLOW_MILITARY_PLASTIC_CRATE_1X1 =
rotatedOrientableShape(Block.box(0, 0, 0, 16, 17, 16));

public static final Function<Direction, VoxelShape> WHITE_MILITARY_PLASTIC_CRATE_1X1 =
rotatedOrientableShape(Block.box(0, 0, 0, 16, 17, 16));

public static final Function<Direction, VoxelShape> CONCRETE_ROAD_BLOCK =
rotatedOrientableShape(Block.box(0, 0, 5, 16, 16, 11));




public static final VoxelShape FLOWER_POT = Shapes.or(
Block.box(6.5, 9, 6.25, 8, 12, 8),
Block.box(4, 0, 4, 12, 7, 12),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,90 @@ public class DecorationBlocks {
.noCollission(),
BlockShapes.BOXES_OF_SHOTGUN_SHELLS, false));


public static final RegistryObject<Block> MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("military_plastic_crate_1x1",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.MILITARY_PLASTIC_CRATE_1X1, false));


public static final RegistryObject<Block> YELLOW_MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("yellow_military_plastic_crate_1x1",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.YELLOW_MILITARY_PLASTIC_CRATE_1X1, false));

public static final RegistryObject<Block> WHITE_MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("white_military_plastic_crate_1x1",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.WHITE_MILITARY_PLASTIC_CRATE_1X1, false));

public static final RegistryObject<Block> BLACK_MILITARY_PLASTIC_CRATE_1X1 =
deferredRegister.register("black_military_plastic_crate_1x1",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.BLACK_MILITARY_PLASTIC_CRATE_1X1, false));


public static final RegistryObject<Block> CRACKED_CONCRETE_ROAD_BLOCK_WITH_STRIPE_LINE =
deferredRegister.register("cracked_concrete_road_block_with_stripe_line",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.CONCRETE_ROAD_BLOCK));

public static final RegistryObject<Block> CRACKED_CONCRETE_ROAD_BLOCK_WITH_RIPPED_STRIPE_LINE =
deferredRegister.register("cracked_concrete_road_block_with_ripped_stripe_line",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.CONCRETE_ROAD_BLOCK));

public static final RegistryObject<Block> CRACKED_CONCRETE_ROAD_BLOCK =
deferredRegister.register("cracked_concrete_road_block",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.CONCRETE_ROAD_BLOCK));

public static final RegistryObject<Block> CONCRETE_ROAD_BLOCK_WITH_STRIPE_LINE =
deferredRegister.register("concrete_road_block_with_stripe_line",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.CONCRETE_ROAD_BLOCK));

public static final RegistryObject<Block> CONCRETE_ROAD_BLOCK =
deferredRegister.register("concrete_road_block",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.CONCRETE_ROAD_BLOCK));

public static final RegistryObject<Block> CONCRETE_ROAD_BLOCK_WITH_RIPPED_STRIPE_LINE =
deferredRegister.register("concrete_road_block_with_ripped_stripe_line",
() -> new OrientableBlock(
BlockBehaviour.Properties.of(Material.METAL)
.strength(5.0F)
.sound(SoundType.METAL),
BlockShapes.CONCRETE_ROAD_BLOCK));


public static final RegistryObject<Block> ROAD_BARRICADE_1 =
deferredRegister.register("road_barricade_1",
() -> new OrientableBlock(
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/black_military_plastic_crate_1x1",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/black_military_plastic_crate_1x1"
},
"facing=west": {
"model": "craftingdeaddecoration:block/black_military_plastic_crate_1x1",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/black_military_plastic_crate_1x1",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/concrete_road_block",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/concrete_road_block"
},
"facing=west": {
"model": "craftingdeaddecoration:block/concrete_road_block",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/concrete_road_block",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_ripped_stripe_line",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_ripped_stripe_line"
},
"facing=west": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_ripped_stripe_line",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_ripped_stripe_line",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_stripe_line",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_stripe_line"
},
"facing=west": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_stripe_line",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/concrete_road_block_with_stripe_line",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block"
},
"facing=west": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_ripped_stripe_line",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_ripped_stripe_line"
},
"facing=west": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_ripped_stripe_line",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_ripped_stripe_line",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_stripe_line",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_stripe_line"
},
"facing=west": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_stripe_line",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/cracked_concrete_road_block_with_stripe_line",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/military_plastic_crate_1x1",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/military_plastic_crate_1x1"
},
"facing=west": {
"model": "craftingdeaddecoration:block/military_plastic_crate_1x1",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/military_plastic_crate_1x1",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/white_military_plastic_crate_1x1",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/white_military_plastic_crate_1x1"
},
"facing=west": {
"model": "craftingdeaddecoration:block/white_military_plastic_crate_1x1",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/white_military_plastic_crate_1x1",
"y": 180
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"variants": {
"facing=east": {
"model": "craftingdeaddecoration:block/yellow_military_plastic_crate_1x1",
"y": 90
},
"facing=north": {
"model": "craftingdeaddecoration:block/yellow_military_plastic_crate_1x1"
},
"facing=west": {
"model": "craftingdeaddecoration:block/yellow_military_plastic_crate_1x1",
"y": 270
},
"facing=south": {
"model": "craftingdeaddecoration:block/yellow_military_plastic_crate_1x1",
"y": 180
}
}
}

0 comments on commit a8d9c84

Please sign in to comment.