From 822913f047fc9269e032d173e7d4392775bf53bc Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Tue, 5 Mar 2024 23:29:23 +0100 Subject: [PATCH] Make Bio Reactor direactional and generate the blockstate --- .../27a06cb38e627c3bacb7787d001fbadd6becbe3f | 3 ++- .../blockstates/bio_reactor.json | 19 +++++++++++++++++++ .../data/BlockStateGenerator.java | 2 +- .../mod/blocks/BlockBioReactor.java | 4 ++-- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 src/generated/resources/assets/actuallyadditions/blockstates/bio_reactor.json diff --git a/src/generated/resources/.cache/27a06cb38e627c3bacb7787d001fbadd6becbe3f b/src/generated/resources/.cache/27a06cb38e627c3bacb7787d001fbadd6becbe3f index ba696540d..fd7d24aee 100644 --- a/src/generated/resources/.cache/27a06cb38e627c3bacb7787d001fbadd6becbe3f +++ b/src/generated/resources/.cache/27a06cb38e627c3bacb7787d001fbadd6becbe3f @@ -1,6 +1,7 @@ -// 1.20.4 2024-03-04T22:51:31.6064301 Block States: actuallyadditions +// 1.20.4 2024-03-05T23:27:48.3961458 Block States: actuallyadditions 23a6aa86c3f14e6a61fc8b17b65063f1995c8592 assets/actuallyadditions/blockstates/atomic_reconstructor.json 88f479927d1abdf16e24a0950ccffa86b5af8b3f assets/actuallyadditions/blockstates/battery_box.json +6ada5cb9e03ed162433bfc048712b6fc3937b420 assets/actuallyadditions/blockstates/bio_reactor.json 5c96fc287e63f5bdd31864bdab698ce34817fd9d assets/actuallyadditions/blockstates/black_quartz_block.json f88640ab3aa81ae4a027948d94386c83dd488d3f assets/actuallyadditions/blockstates/black_quartz_brick_block.json 76275adac938c575565d4aeb21b9994a7f561f88 assets/actuallyadditions/blockstates/black_quartz_brick_slab.json diff --git a/src/generated/resources/assets/actuallyadditions/blockstates/bio_reactor.json b/src/generated/resources/assets/actuallyadditions/blockstates/bio_reactor.json new file mode 100644 index 000000000..3226cc261 --- /dev/null +++ b/src/generated/resources/assets/actuallyadditions/blockstates/bio_reactor.json @@ -0,0 +1,19 @@ +{ + "variants": { + "facing=east": { + "model": "actuallyadditions:block/bio_reactor", + "y": 90 + }, + "facing=north": { + "model": "actuallyadditions:block/bio_reactor" + }, + "facing=south": { + "model": "actuallyadditions:block/bio_reactor", + "y": 180 + }, + "facing=west": { + "model": "actuallyadditions:block/bio_reactor", + "y": 270 + } + } +} \ No newline at end of file diff --git a/src/main/java/de/ellpeck/actuallyadditions/data/BlockStateGenerator.java b/src/main/java/de/ellpeck/actuallyadditions/data/BlockStateGenerator.java index 3d9e4bd0c..da996b6ed 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/data/BlockStateGenerator.java +++ b/src/main/java/de/ellpeck/actuallyadditions/data/BlockStateGenerator.java @@ -38,7 +38,7 @@ public class BlockStateGenerator extends BlockStateProvider { // Horizontal Directional Blocks horizontallyDirectionalBlock(ActuallyBlocks.FARMER); - //horizontallyDirectionalBlock(ActuallyBlocks.BIOREACTOR); + horizontallyDirectionalBlock(ActuallyBlocks.BIOREACTOR); horizontallyDirectionalBlock(ActuallyBlocks.VERTICAL_DIGGER); horizontallyDirectionalBlock(ActuallyBlocks.LEAF_GENERATOR); horizontallyDirectionalBlock(ActuallyBlocks.COFFEE_MACHINE); diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockBioReactor.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockBioReactor.java index b56a7216d..b4f0f9b27 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockBioReactor.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockBioReactor.java @@ -10,7 +10,7 @@ package de.ellpeck.actuallyadditions.mod.blocks; -import de.ellpeck.actuallyadditions.mod.blocks.base.BlockContainerBase; +import de.ellpeck.actuallyadditions.mod.blocks.base.DirectionalBlock; import de.ellpeck.actuallyadditions.mod.tile.TileEntityBioReactor; import net.minecraft.core.BlockPos; import net.minecraft.world.InteractionHand; @@ -25,7 +25,7 @@ import net.minecraft.world.phys.BlockHitResult; import javax.annotation.Nullable; -public class BlockBioReactor extends BlockContainerBase { +public class BlockBioReactor extends DirectionalBlock.Container { public BlockBioReactor() { super(ActuallyBlocks.defaultPickProps(2.0F, 10.0F));