From f504c30e77c17209659f8e64d924ffaf432cac24 Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Fri, 6 Oct 2023 18:11:42 +0300 Subject: [PATCH] Add minor create integration --- TODO.md | 2 ++ recipeTODO.txt | 5 ++--- src/main/java/su/a71/new_soviet/blocks/TVBlock.java | 3 +-- .../data/create/tags/blocks/fan_transparent.json | 9 +++++++++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 src/main/resources/data/create/tags/blocks/fan_transparent.json diff --git a/TODO.md b/TODO.md index b2d0394..97aa041 100644 --- a/TODO.md +++ b/TODO.md @@ -6,6 +6,8 @@ * Fix post lamp hitboxes * Add credits in models +* Create integration - tags, recipes + === ACHIEVEMENTS === Kolkhoz warrior - kill someone with a sickle Gambler - throw dice 100 times diff --git a/recipeTODO.txt b/recipeTODO.txt index 4f2b4d1..50a7823 100644 --- a/recipeTODO.txt +++ b/recipeTODO.txt @@ -1,6 +1,5 @@ * aquamarine recipe * whitewash recipe -* concrete recipe * concrete with bars recipe * parquet recipe * linoleum recipe @@ -13,7 +12,7 @@ * light bulb recipe * cigarette recipe * siren recipe -* no landmine recipe - intended * switch recipe * checkers and chess recipe -* bars/iron fences +* post lamps recipes +* Various lamps recipes \ No newline at end of file diff --git a/src/main/java/su/a71/new_soviet/blocks/TVBlock.java b/src/main/java/su/a71/new_soviet/blocks/TVBlock.java index 156d974..ef8dc04 100644 --- a/src/main/java/su/a71/new_soviet/blocks/TVBlock.java +++ b/src/main/java/su/a71/new_soviet/blocks/TVBlock.java @@ -33,8 +33,7 @@ public class TVBlock extends HorizontalFacingBlock implements BlockEntityProvide @Override public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext ctx) { - Direction dir = state.get(FACING); - return switch (dir) { + return switch (state.get(FACING)) { case NORTH -> SHAPE.north(); case SOUTH -> SHAPE.south(); case EAST -> SHAPE.east(); diff --git a/src/main/resources/data/create/tags/blocks/fan_transparent.json b/src/main/resources/data/create/tags/blocks/fan_transparent.json new file mode 100644 index 0000000..e4eb2dc --- /dev/null +++ b/src/main/resources/data/create/tags/blocks/fan_transparent.json @@ -0,0 +1,9 @@ +{ + "replace": false, + "values": [ + "new_soviet:blue_iron_bars", + "new_soviet:rusty_blue_iron_bars", + "new_soviet:vintage_iron_bars", + "new_soviet:handrail" + ] +} \ No newline at end of file