From 045879f27207fe1955680bb4acaaa429aa025f52 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 15:03:55 -0500 Subject: [PATCH 01/25] split out some code into BlockGateAnd in preparation for more gates --- .../block/gates/BlockGateAnd.java | 53 +++++++++++++ .../block/gates/BlockGateBase.java | 74 ++++++++----------- .../block/gates/BlockNullCell.java | 1 - .../java/com/bluepowermod/init/BPBlocks.java | 10 +-- 4 files changed, 88 insertions(+), 50 deletions(-) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java new file mode 100644 index 00000000..5bd3c7da --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java @@ -0,0 +1,53 @@ +package com.bluepowermod.block.gates; + +import com.bluepowermod.helper.DirectionHelper; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; +import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.block.RedStoneWireBlock; +import net.minecraft.world.level.block.state.BlockState; + +import java.util.HashMap; +import java.util.Map; + +public class BlockGateAnd extends BlockGateBase { + private final boolean inverted; + + public BlockGateAnd(boolean inverted){ + this.inverted = inverted; + } + + @Override + protected boolean isSideSource(Side side) { + return side == Side.FRONT; + } + + public Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos){ + Map map = new HashMap<>(); + Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); + Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; + Direction side_right = side_left.getOpposite(); + Direction side_back = dirs[state.getValue(ROTATION)]; + BlockPos pos_left = pos.relative(side_left); + BlockPos pos_right = pos.relative(side_right); + BlockPos pos_back = pos.relative(side_back); + BlockState state_left = worldIn.getBlockState(pos_left); + BlockState state_right = worldIn.getBlockState(pos_right); + BlockState state_back = worldIn.getBlockState(pos_back); + byte left = (byte) state_left.getSignal(worldIn, pos_left, side_right); + byte right = (byte) state_right.getSignal(worldIn, pos_right, side_left); + byte back = (byte) state_back.getSignal(worldIn, pos_back, side_back.getOpposite()); + if(state_left.getBlock() instanceof RedStoneWireBlock){left = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} + if(state_right.getBlock() instanceof RedStoneWireBlock){right = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} + if(state_back.getBlock() instanceof RedStoneWireBlock){back = state_back.getValue(RedStoneWireBlock.POWER).byteValue();} + map.put(Side.LEFT, left); + map.put(Side.RIGHT, right); + map.put(Side.BACK, back); + map.put(Side.FRONT, computeRedstone(Side.FRONT, back, (byte) 0, left, right)); + return map; + } + + public byte computeRedstone(Side side, byte back, byte front, byte left, byte right){ + boolean and = left > 0 && right > 0 && back > 0; + return (byte) (and != inverted ? 16 : 0); + }} diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java index 075d98c6..16f230b0 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java @@ -41,7 +41,7 @@ /** * @author MoreThanHidden */ -public class BlockGateBase extends BlockBase implements SimpleWaterloggedBlock { +public abstract class BlockGateBase extends BlockBase implements SimpleWaterloggedBlock { public static final DirectionProperty FACING = BlockStateProperties.FACING; public static final IntegerProperty ROTATION = IntegerProperty.create("rotation", 0, 3); public static final BooleanProperty POWERED_FRONT = BooleanProperty.create("powered_front"); @@ -131,17 +131,13 @@ public void setPlacedBy(Level world, BlockPos pos, BlockState state, @Nullable L .setValue(POWERED_RIGHT, map.get(Side.RIGHT) > 0)); } - @Override - public boolean isSignalSource(BlockState blockState) { - return true; - } - @Override public int getSignal(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side){ Direction[] dirs = DirectionHelper.ArrayFromDirection(blockState.getValue(FACING)); - if(side == dirs[blockState.getValue(ROTATION)]) { - Map map = getSidePower(blockAccess, blockState, pos); - return map.get(Side.FRONT); + Side side1 = fromDirection(side.getOpposite(), blockState.getValue(ROTATION), dirs); + Map map = getSidePower(blockAccess, blockState, pos); + if (isSideSource(side1)){ + return map.get(side1); } return 0; } @@ -149,45 +145,39 @@ public int getSignal(BlockState blockState, BlockGetter blockAccess, BlockPos po @Override public int getDirectSignal(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) { Direction[] dirs = DirectionHelper.ArrayFromDirection(blockState.getValue(FACING)); - if(side == dirs[blockState.getValue(ROTATION)]) { - Map map = getSidePower(blockAccess, blockState, pos); - return map.get(Side.FRONT); + Side side1 = fromDirection(side.getOpposite(), blockState.getValue(ROTATION), dirs); + Map map = getSidePower(blockAccess, blockState, pos); + if (isSideSource(side1)){ + return map.get(side1); } return 0; } - public Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos){ - Map map = new HashMap<>(); - Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); - Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; - Direction side_right = side_left.getOpposite(); - Direction side_back = dirs[state.getValue(ROTATION)]; - BlockPos pos_left = pos.relative(side_left); - BlockPos pos_right = pos.relative(side_right); - BlockPos pos_back = pos.relative(side_back); - BlockState state_left = worldIn.getBlockState(pos_left); - BlockState state_right = worldIn.getBlockState(pos_right); - BlockState state_back = worldIn.getBlockState(pos_back); - byte left = (byte) state_left.getSignal(worldIn, pos_left, side_right); - byte right = (byte) state_right.getSignal(worldIn, pos_right, side_left); - byte back = (byte) state_back.getSignal(worldIn, pos_back, side_back.getOpposite()); - if(state_left.getBlock() instanceof RedStoneWireBlock){left = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} - if(state_right.getBlock() instanceof RedStoneWireBlock){right = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} - if(state_back.getBlock() instanceof RedStoneWireBlock){back = state_back.getValue(RedStoneWireBlock.POWER).byteValue();} - map.put(Side.LEFT, left); - map.put(Side.RIGHT, right); - map.put(Side.BACK, back); - map.put(Side.FRONT, computeRedstone(Side.FRONT, back, (byte) 0, left, right)); - return map; - } - - public byte computeRedstone(Side side, byte back, byte front, byte left, byte right){ - if (left > 0 && right > 0 ){ - return (byte)(back > 0 ? 16 : 0); - } - return 0; + private Side fromDirection(Direction direction, int rotation, Direction[] array){ + Direction sideLeft = array[rotation == 3 ? 0 : rotation + 1]; + Direction sideRight = sideLeft.getOpposite(); + Direction sideBack = array[rotation]; + Direction sideFront = sideBack.getOpposite(); + if (direction == sideFront) return Side.FRONT; + if (direction == sideBack) return Side.BACK; + if (direction == sideLeft) return Side.LEFT; + if (direction == sideRight) return Side.RIGHT; + return null; } + protected abstract Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos); + + protected boolean isSideSource(Side side){ + return false; + } + + @Override + public boolean isSignalSource(BlockState blockState) { + return true; + } + + + @Override public void neighborChanged(BlockState state, Level world, BlockPos pos, Block blockIn, BlockPos fromPos, boolean bool) { super.neighborChanged(state, world, pos, blockIn, fromPos, bool); diff --git a/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java b/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java index f04f6dd4..b46ccc1a 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java @@ -69,7 +69,6 @@ public Map getSidePower(BlockGetter worldIn, BlockState state, Block return map; } - @Override public byte computeRedstone(Side side, byte back, byte front, byte left, byte right){ return switch (side) { case FRONT -> right; diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 40ed3555..45795684 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -20,6 +20,7 @@ import com.bluepowermod.api.misc.MinecraftColor; import com.bluepowermod.api.wire.redstone.RedwireType; import com.bluepowermod.block.*; +import com.bluepowermod.block.gates.BlockGateAnd; import com.bluepowermod.block.gates.BlockGateBase; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; @@ -269,14 +270,9 @@ public class BPBlocks { - public static final RegistryObject blockGateAND = BLOCKS.register("gate_and", BlockGateBase::new); + public static final RegistryObject blockGateAND = BLOCKS.register("gate_and", () -> new BlockGateAnd(false)); public static final RegistryObject blockNullCell = BLOCKS.register("gate_nullcell", BlockNullCell::new); - public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateBase(){ - @Override - public byte computeRedstone(BlockGateBase.Side side, byte back, byte front, byte left, byte right){ - return (byte)((left == 0 || right == 0 || back == 0 ) ? 16 : 0); - } - }); + public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateAnd(true)); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); From 6fc450c7d5fca5cbaf86bcea65cea660149ac8fe Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 15:05:27 -0500 Subject: [PATCH 02/25] added not gate --- .../block/gates/BlockGateNot.java | 35 +++++++++++++++++++ .../java/com/bluepowermod/init/BPBlocks.java | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateNot.java diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java new file mode 100644 index 00000000..45995133 --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java @@ -0,0 +1,35 @@ +package com.bluepowermod.block.gates; + +import com.bluepowermod.helper.DirectionHelper; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; +import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.block.RedStoneWireBlock; +import net.minecraft.world.level.block.state.BlockState; + +import java.util.HashMap; +import java.util.Map; + +public class BlockGateNot extends BlockGateBase{ + @Override + protected Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos) { + Map map = new HashMap<>(); + Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); + Direction sideBack = dirs[state.getValue(ROTATION)]; + BlockPos posBack = pos.relative(sideBack); + BlockState stateBack = worldIn.getBlockState(posBack); + byte back = (byte) stateBack.getSignal(worldIn, posBack, sideBack.getOpposite()); + if(stateBack.getBlock() instanceof RedStoneWireBlock){back = stateBack.getValue(RedStoneWireBlock.POWER).byteValue();} + byte output = (byte) (back > 0 ? 0 : 16); + map.put(Side.FRONT, output); + map.put(Side.LEFT, output); + map.put(Side.RIGHT, output); + map.put(Side.BACK, back); + return map; + } + + @Override + protected boolean isSideSource(Side side) { + return side == Side.FRONT || side == Side.LEFT || side == Side.RIGHT; + } +} diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 45795684..9e5933bd 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -22,6 +22,7 @@ import com.bluepowermod.block.*; import com.bluepowermod.block.gates.BlockGateAnd; import com.bluepowermod.block.gates.BlockGateBase; +import com.bluepowermod.block.gates.BlockGateNot; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; import com.bluepowermod.block.lighting.BlockLampSurface; @@ -271,6 +272,7 @@ public class BPBlocks { public static final RegistryObject blockGateAND = BLOCKS.register("gate_and", () -> new BlockGateAnd(false)); + public static final RegistryObject blockGateNot = BLOCKS.register("gate_not", BlockGateNot::new); public static final RegistryObject blockNullCell = BLOCKS.register("gate_nullcell", BlockNullCell::new); public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateAnd(true)); From 3e22867a03436a9ce6b4782c50c237a09811535d Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:47:39 -0500 Subject: [PATCH 03/25] added missing item for not gate --- src/main/java/com/bluepowermod/init/BPBlocks.java | 1 + src/main/java/com/bluepowermod/init/BPCreativeTabs.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 9e5933bd..3df19062 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -278,6 +278,7 @@ public class BPBlocks { static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateNot.getKey().location().getPath(), () -> new BlockItem(blockGateNot.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateNAND.getKey().location().getPath(), () -> new BlockItem(blockGateNAND.get(), new Item.Properties())); BPItems.ITEMS.register(blockNullCell.getKey().location().getPath(), () -> new BlockItem(blockNullCell.get(), new Item.Properties())); } diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index bebeeb37..1ea321b3 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -64,6 +64,7 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.acceptAll(BPBlocks.machines.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); event.accept(BPBlocks.blulectric_cable.get()); event.accept(BPBlocks.blockGateAND.get()); + event.accept(BPBlocks.blockGateNot.get()); event.accept(BPBlocks.blockGateNAND.get()); event.accept(BPBlocks.blockNullCell.get()); }else if(event.getTab() == lighting.get()){ From 619bc47aacd5efcc13fbdebd02e3c3950e092066 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:48:12 -0500 Subject: [PATCH 04/25] renamed Not gate constant --- src/main/java/com/bluepowermod/init/BPBlocks.java | 5 ++--- src/main/java/com/bluepowermod/init/BPCreativeTabs.java | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 3df19062..2c3b4f9f 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -21,7 +21,6 @@ import com.bluepowermod.api.wire.redstone.RedwireType; import com.bluepowermod.block.*; import com.bluepowermod.block.gates.BlockGateAnd; -import com.bluepowermod.block.gates.BlockGateBase; import com.bluepowermod.block.gates.BlockGateNot; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; @@ -272,13 +271,13 @@ public class BPBlocks { public static final RegistryObject blockGateAND = BLOCKS.register("gate_and", () -> new BlockGateAnd(false)); - public static final RegistryObject blockGateNot = BLOCKS.register("gate_not", BlockGateNot::new); + public static final RegistryObject blockGateNOT = BLOCKS.register("gate_not", BlockGateNot::new); public static final RegistryObject blockNullCell = BLOCKS.register("gate_nullcell", BlockNullCell::new); public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateAnd(true)); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); - BPItems.ITEMS.register(blockGateNot.getKey().location().getPath(), () -> new BlockItem(blockGateNot.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateNOT.getKey().location().getPath(), () -> new BlockItem(blockGateNOT.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateNAND.getKey().location().getPath(), () -> new BlockItem(blockGateNAND.get(), new Item.Properties())); BPItems.ITEMS.register(blockNullCell.getKey().location().getPath(), () -> new BlockItem(blockNullCell.get(), new Item.Properties())); } diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index 1ea321b3..7430f321 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -23,7 +23,6 @@ import net.minecraft.core.registries.Registries; import net.minecraft.nbt.CompoundTag; import net.minecraft.network.chat.Component; -import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.BlockItem; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.ItemStack; @@ -64,7 +63,7 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.acceptAll(BPBlocks.machines.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); event.accept(BPBlocks.blulectric_cable.get()); event.accept(BPBlocks.blockGateAND.get()); - event.accept(BPBlocks.blockGateNot.get()); + event.accept(BPBlocks.blockGateNOT.get()); event.accept(BPBlocks.blockGateNAND.get()); event.accept(BPBlocks.blockNullCell.get()); }else if(event.getTab() == lighting.get()){ From 03152eb79678c1c2ce6a3eec2d3624d531743587 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 17:48:35 -0500 Subject: [PATCH 05/25] started working on not gate block models --- .../bluepower/blockstates/gate_not.json | 220 ++++++++++++++ .../bluepower/models/block/gate_not.json | 268 ++++++++++++++++++ .../bluepower/models/block/gate_not_back.json | 51 ++++ .../models/block/gate_not_back_on.json | 7 + .../models/block/gate_not_back_on_z.json | 7 + .../models/block/gate_not_back_z.json | 54 ++++ .../models/block/gate_not_blank.json | 154 ++++++++++ .../models/block/gate_not_front.json | 31 ++ .../models/block/gate_not_front_on.json | 6 + .../bluepower/models/block/gate_not_left.json | 31 ++ .../models/block/gate_not_left_on.json | 6 + .../models/block/gate_not_right.json | 31 ++ .../models/block/gate_not_right_on.json | 6 + .../bluepower/models/item/gate_not.json | 3 + 14 files changed, 875 insertions(+) create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_not.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_back.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_front.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_left.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_right.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_not_right_on.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_not.json diff --git a/src/main/resources/assets/bluepower/blockstates/gate_not.json b/src/main/resources/assets/bluepower/blockstates/gate_not.json new file mode 100644 index 00000000..e31f5182 --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_not.json @@ -0,0 +1,220 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not.json b/src/main/resources/assets/bluepower/models/block/gate_not.json new file mode 100644 index 00000000..c8f9e895 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not.json @@ -0,0 +1,268 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_in": "bluepower:base/bluestone_off", + "bluestone_out": "bluepower:base/bluestone_on", + "gate": "bluepower:blocks/gates/gate", + "torch_middle": "bluepower:blocks/bluestone_torch_on" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 4.001], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4], + "to": [10, 2.25, 6], + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [4.5, 2, 6], + "to": [6.5, 2.25, 10], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.5, 2, 6], + "to": [11.5, 2.25, 10], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6], + "to": [8.5, 2.25, 9.5], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6], + "to": [9.5, 2.25, 9.5], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "FrontWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 4.5], + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 5.5, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 5.5, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [15, 2, 16, 7.5], "texture": "#bluestone_out"} + } + }, + { + "name": "FrontWire", + "from": [6.5, 2, 4.5], + "to": [9.5, 2.5, 5.5], + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_out"} + } + }, + { + "name": "LeftBase", + "from": [0, 2, 7], + "to": [4.49, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.49, 2, 7], + "to": [15.98, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [5, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#bluestone_out"} + } + }, + { + "name": "LeftWire", + "from": [5, 2, 6.5], + "to": [6, 2.5, 9.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_out"} + } + }, + { + "name": "RightWire", + "from": [10, 2, 6.5], + "to": [11, 2.5, 9.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_out"} + } + }, + { + "name": "RightWire", + "from": [11, 2, 7.5], + "to": [16, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#bluestone_out"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + }, + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_in"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_in"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_in"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#bluestone_in"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back.json b/src/main/resources/assets/bluepower/models/block/gate_not_back.json new file mode 100644 index 00000000..124303c2 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_back.json @@ -0,0 +1,51 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_in": "bluepower:base/bluestone_off", + "torch_middle": "bluepower:blocks/bluestone_torch_on" + }, + "elements": [ + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_in"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_in"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_in"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#bluestone_in"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back_on.json b/src/main/resources/assets/bluepower/models/block/gate_not_back_on.json new file mode 100644 index 00000000..109cca75 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_back_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/gate_not_back", + "textures": { + "bluestone_in": "bluepower:base/bluestone_on", + "torch_middle": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json b/src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json new file mode 100644 index 00000000..47467e17 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/gate_not_back_z", + "textures": { + "bluestone_in": "bluepower:base/bluestone_on", + "torch_middle": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back_z.json b/src/main/resources/assets/bluepower/models/block/gate_not_back_z.json new file mode 100644 index 00000000..032dc491 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_back_z.json @@ -0,0 +1,54 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_in": "bluepower:base/bluestone_off", + "torch_middle": "bluepower:blocks/bluestone_torch_on" + }, + "elements": [ + { + "name": "BackWire", + "from": [0, 2, 7.5], + "to": [7, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 8]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_in"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_in"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_in"}, + "up": {"uv": [0, 0, 1, 7], "rotation": 90, "texture": "#bluestone_in"} + } + }, + { + "name": "Middle1", + "from": [5.5, 2, 6.5], + "to": [9.5, 6, 8.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 7.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6.5, 2, 5.5], + "to": [8.5, 6, 9.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 7.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [6.5, 2, 6.5], + "to": [8.5, 5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 8, 7.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_middle"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_blank.json b/src/main/resources/assets/bluepower/models/block/gate_not_blank.json new file mode 100644 index 00000000..427ac280 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_blank.json @@ -0,0 +1,154 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 4.001], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4], + "to": [10, 2.25, 6], + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [4.5, 2, 6], + "to": [6.5, 2.25, 10], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.5, 2, 6], + "to": [11.5, 2.25, 10], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6], + "to": [8.5, 2.25, 9.5], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6], + "to": [9.5, 2.25, 9.5], + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0, 2, 7], + "to": [4.49, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.49, 2, 7], + "to": [15.98, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_front.json b/src/main/resources/assets/bluepower/models/block/gate_not_front.json new file mode 100644 index 00000000..9d32c6be --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_front.json @@ -0,0 +1,31 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_out": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "FrontWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 4.5], + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 5.5, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 5.5, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [15, 2, 16, 7.5], "texture": "#bluestone_out"} + } + }, + { + "name": "FrontWire", + "from": [6.5, 2, 4.5], + "to": [9.5, 2.5, 5.5], + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_out"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_front_on.json b/src/main/resources/assets/bluepower/models/block/gate_not_front_on.json new file mode 100644 index 00000000..3c26cdd0 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_front_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/gate_not_front", + "textures": { + "bluestone_out": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_left.json b/src/main/resources/assets/bluepower/models/block/gate_not_left.json new file mode 100644 index 00000000..e59b026f --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_left.json @@ -0,0 +1,31 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_out": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [5, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#bluestone_out"} + } + }, + { + "name": "LeftWire", + "from": [5, 2, 6.5], + "to": [6, 2.5, 9.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_out"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_left_on.json b/src/main/resources/assets/bluepower/models/block/gate_not_left_on.json new file mode 100644 index 00000000..30344e90 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/gate_not_left", + "textures": { + "bluestone_out": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_right.json b/src/main/resources/assets/bluepower/models/block/gate_not_right.json new file mode 100644 index 00000000..9d4d72ef --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_right.json @@ -0,0 +1,31 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_out": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "RightWire", + "from": [10, 2, 6.5], + "to": [11, 2.5, 9.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_out"} + } + }, + { + "name": "RightWire", + "from": [11, 2, 7.5], + "to": [16, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#bluestone_out"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_right_on.json b/src/main/resources/assets/bluepower/models/block/gate_not_right_on.json new file mode 100644 index 00000000..bb25ceb8 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_not_right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/gate_not_right", + "textures": { + "bluestone_out": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/item/gate_not.json b/src/main/resources/assets/bluepower/models/item/gate_not.json new file mode 100644 index 00000000..138267be --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_not.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_not" +} From e4a298f90412ffc3c7b4b5ef17dc261af8751043 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 19:33:26 -0500 Subject: [PATCH 06/25] moved gate models for better organization --- .../bluepower/blockstates/gate_and.json | 432 +++++++++--------- .../bluepower/blockstates/gate_nand.json | 432 +++++++++--------- .../bluepower/blockstates/gate_not.json | 432 +++++++++--------- .../back.json} | 0 .../back_on.json} | 2 +- .../back_on_z.json} | 2 +- .../back_z.json} | 0 .../blank.json} | 0 .../blank_z.json} | 0 .../front.json} | 0 .../front_on.json} | 2 +- .../front_on_z.json} | 2 +- .../front_z.json} | 0 .../left.json} | 0 .../left_on.json} | 2 +- .../left_on_z.json} | 2 +- .../left_z.json} | 0 .../right.json} | 0 .../right_on.json} | 2 +- .../right_on_z.json} | 2 +- .../right_z.json} | 0 .../back.json} | 0 .../back_on.json} | 2 +- .../back_on_z.json} | 2 +- .../back_z.json} | 0 .../blank.json} | 0 .../blank_z.json} | 0 .../front.json} | 0 .../front_on.json} | 2 +- .../front_on_z.json} | 2 +- .../front_z.json} | 0 .../left.json} | 0 .../left_on.json} | 2 +- .../left_on_z.json} | 2 +- .../left_z.json} | 0 .../right.json} | 0 .../right_on.json} | 2 +- .../right_on_z.json} | 2 +- .../right_z.json} | 0 .../back.json} | 0 .../back_on.json} | 2 +- .../back_on_z.json} | 2 +- .../back_z.json} | 0 .../blank.json} | 0 .../front.json} | 0 .../front_on.json} | 2 +- .../left.json} | 0 .../left_on.json} | 2 +- .../right.json} | 0 .../right_on.json} | 2 +- 50 files changed, 669 insertions(+), 669 deletions(-) rename src/main/resources/assets/bluepower/models/block/{gate_and_back.json => and_gate/back.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_back_on.json => and_gate/back_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_and_back_on_z.json => and_gate/back_on_z.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_and_back_z.json => and_gate/back_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_blank.json => and_gate/blank.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_blank_z.json => and_gate/blank_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_front.json => and_gate/front.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_front_on.json => and_gate/front_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_and_front_on_z.json => and_gate/front_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_and_front_z.json => and_gate/front_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_left.json => and_gate/left.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_left_on.json => and_gate/left_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_and_left_on_z.json => and_gate/left_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_and_left_z.json => and_gate/left_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_right.json => and_gate/right.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_and_right_on.json => and_gate/right_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_and_right_on_z.json => and_gate/right_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_and_right_z.json => and_gate/right_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_back.json => nand_gate/back.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_back_on.json => nand_gate/back_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_back_on_z.json => nand_gate/back_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_back_z.json => nand_gate/back_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_blank.json => nand_gate/blank.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_blank_z.json => nand_gate/blank_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_front.json => nand_gate/front.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_front_on.json => nand_gate/front_on.json} (63%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_front_on_z.json => nand_gate/front_on_z.json} (62%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_front_z.json => nand_gate/front_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_left.json => nand_gate/left.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_left_on.json => nand_gate/left_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_left_on_z.json => nand_gate/left_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_left_z.json => nand_gate/left_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_right.json => nand_gate/right.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_right_on.json => nand_gate/right_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_right_on_z.json => nand_gate/right_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_nand_right_z.json => nand_gate/right_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_back.json => not_gate/back.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_back_on.json => not_gate/back_on.json} (75%) rename src/main/resources/assets/bluepower/models/block/{gate_not_back_on_z.json => not_gate/back_on_z.json} (74%) rename src/main/resources/assets/bluepower/models/block/{gate_not_back_z.json => not_gate/back_z.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_blank.json => not_gate/blank.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_front.json => not_gate/front.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_right_on.json => not_gate/front_on.json} (63%) rename src/main/resources/assets/bluepower/models/block/{gate_not_left.json => not_gate/left.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_left_on.json => not_gate/left_on.json} (63%) rename src/main/resources/assets/bluepower/models/block/{gate_not_right.json => not_gate/right.json} (100%) rename src/main/resources/assets/bluepower/models/block/{gate_not_front_on.json => not_gate/right_on.json} (63%) diff --git a/src/main/resources/assets/bluepower/blockstates/gate_and.json b/src/main/resources/assets/bluepower/blockstates/gate_and.json index 3b261c93..243da86e 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_and.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_and.json @@ -1,220 +1,220 @@ { "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_and_back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_and_back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_and_back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_and_back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_and_back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_and_back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_and_back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_and_back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_and_back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_and_back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_and_back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_and_back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_and_back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_and_back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_and_back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_and_back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_and_back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_and_back_z","x":270,"y":90}} + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":90}} ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_nand.json b/src/main/resources/assets/bluepower/blockstates/gate_nand.json index 274cebcf..2767b27c 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_nand.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_nand.json @@ -1,220 +1,220 @@ { "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_nand_back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_nand_back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_nand_back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_nand_back_z","x":270,"y":90}} + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":90}} ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_not.json b/src/main/resources/assets/bluepower/blockstates/gate_not.json index e31f5182..e7eb31d7 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_not.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_not.json @@ -1,220 +1,220 @@ { "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/gate_not_back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/gate_not_back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/gate_not_back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/gate_not_back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/gate_not_back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/gate_not_back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/gate_not_back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/gate_not_back_z","x":270,"y":90}} + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":90}} ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_back.json b/src/main/resources/assets/bluepower/models/block/and_gate/back.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_back.json rename to src/main/resources/assets/bluepower/models/block/and_gate/back.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_back_on.json b/src/main/resources/assets/bluepower/models/block/and_gate/back_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_and_back_on.json rename to src/main/resources/assets/bluepower/models/block/and_gate/back_on.json index 9253e604..3df85100 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_back_on.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/back_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_back", + "parent": "bluepower:block/and_gate/back", "textures": { "bluestone_back": "bluepower:base/bluestone_on", "torch_middle": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_back_on_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/back_on_z.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_and_back_on_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/back_on_z.json index c023ca74..c49bfc03 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_back_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/back_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_back_z", + "parent": "bluepower:block/and_gate/back_z", "textures": { "bluestone_back": "bluepower:base/bluestone_on", "torch_middle": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_back_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/back_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_back_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/back_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_blank.json b/src/main/resources/assets/bluepower/models/block/and_gate/blank.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_blank.json rename to src/main/resources/assets/bluepower/models/block/and_gate/blank.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_blank_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/blank_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_blank_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/blank_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_front.json b/src/main/resources/assets/bluepower/models/block/and_gate/front.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_front.json rename to src/main/resources/assets/bluepower/models/block/and_gate/front.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_front_on.json b/src/main/resources/assets/bluepower/models/block/and_gate/front_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_and_front_on.json rename to src/main/resources/assets/bluepower/models/block/and_gate/front_on.json index bbd1c8b9..7dbbfba9 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_front_on.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/front_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_front", + "parent": "bluepower:block/and_gate/front", "textures": { "bluestone_front": "bluepower:base/bluestone_off", "torch_front": "bluepower:blocks/bluestone_torch_on" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_front_on_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/front_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_and_front_on_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/front_on_z.json index 4e3d4362..393b44d3 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_front_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/front_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_front_z", + "parent": "bluepower:block/and_gate/front_z", "textures": { "torch_front": "bluepower:blocks/bluestone_torch_on", "bluestone_front": "bluepower:base/bluestone_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_front_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/front_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_front_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/front_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_left.json b/src/main/resources/assets/bluepower/models/block/and_gate/left.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_left.json rename to src/main/resources/assets/bluepower/models/block/and_gate/left.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_left_on.json b/src/main/resources/assets/bluepower/models/block/and_gate/left_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_and_left_on.json rename to src/main/resources/assets/bluepower/models/block/and_gate/left_on.json index 0303d078..f4012fe4 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_left_on.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/left_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_left", + "parent": "bluepower:block/and_gate/left", "textures": { "bluestone_left": "bluepower:base/bluestone_on", "torch_left": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_left_on_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/left_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_and_left_on_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/left_on_z.json index a54fd737..2be3783d 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_left_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/left_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_left_z", + "parent": "bluepower:block/and_gate/left_z", "textures": { "bluestone_left": "bluepower:base/bluestone_on", "torch_left": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_left_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/left_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_left_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/left_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_right.json b/src/main/resources/assets/bluepower/models/block/and_gate/right.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_right.json rename to src/main/resources/assets/bluepower/models/block/and_gate/right.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_right_on.json b/src/main/resources/assets/bluepower/models/block/and_gate/right_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_and_right_on.json rename to src/main/resources/assets/bluepower/models/block/and_gate/right_on.json index e730f68c..41184c98 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_right_on.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/right_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_right", + "parent": "bluepower:block/and_gate/right", "textures": { "bluestone_right": "bluepower:base/bluestone_on", "torch_right": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_right_on_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/right_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_and_right_on_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/right_on_z.json index 887b9069..dc7aa0b1 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_and_right_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/right_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_and_right_z", + "parent": "bluepower:block/and_gate/right_z", "textures": { "bluestone_right": "bluepower:base/bluestone_on", "torch_right": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_and_right_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/right_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_and_right_z.json rename to src/main/resources/assets/bluepower/models/block/and_gate/right_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_back.json b/src/main/resources/assets/bluepower/models/block/nand_gate/back.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_back.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/back.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_back_on.json b/src/main/resources/assets/bluepower/models/block/nand_gate/back_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_nand_back_on.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/back_on.json index 7d4551b2..d5f79808 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_back_on.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/back_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_back", + "parent": "bluepower:block/nand_gate/back", "textures": { "bluestone_back": "bluepower:base/bluestone_on", "torch_middle": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_back_on_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/back_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_nand_back_on_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/back_on_z.json index 7c56fdbe..3e5824b4 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_back_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/back_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_back_z", + "parent": "bluepower:block/nand_gate/back_z", "textures": { "bluestone_back": "bluepower:base/bluestone_on", "torch_middle": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_back_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/back_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_back_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/back_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_blank.json b/src/main/resources/assets/bluepower/models/block/nand_gate/blank.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_blank.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/blank.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_blank_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/blank_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_blank_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/blank_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_front.json b/src/main/resources/assets/bluepower/models/block/nand_gate/front.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_front.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/front.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_front_on.json b/src/main/resources/assets/bluepower/models/block/nand_gate/front_on.json similarity index 63% rename from src/main/resources/assets/bluepower/models/block/gate_nand_front_on.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/front_on.json index 06cd5b4f..5c1611d1 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_front_on.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/front_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_front", + "parent": "bluepower:block/nand_gate/front", "textures": { "bluestone_front": "bluepower:base/bluestone_on" } diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_front_on_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/front_on_z.json similarity index 62% rename from src/main/resources/assets/bluepower/models/block/gate_nand_front_on_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/front_on_z.json index 1dee5b20..400374d2 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_front_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/front_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_front_z", + "parent": "bluepower:block/nand_gate/front_z", "textures": { "bluestone_front": "bluepower:base/bluestone_on" } diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_front_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/front_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_front_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/front_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_left.json b/src/main/resources/assets/bluepower/models/block/nand_gate/left.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_left.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/left.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_left_on.json b/src/main/resources/assets/bluepower/models/block/nand_gate/left_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_nand_left_on.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/left_on.json index 9cf7d5bf..d6904e68 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_left_on.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/left_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_left", + "parent": "bluepower:block/nand_gate/left", "textures": { "bluestone_left": "bluepower:base/bluestone_on", "torch_left": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_left_on_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/left_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_nand_left_on_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/left_on_z.json index fbc5dccf..3d51511e 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_left_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/left_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_left_z", + "parent": "bluepower:block/nand_gate/left_z", "textures": { "bluestone_left": "bluepower:base/bluestone_on", "torch_left": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_left_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/left_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_left_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/left_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_right.json b/src/main/resources/assets/bluepower/models/block/nand_gate/right.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_right.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/right.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_right_on.json b/src/main/resources/assets/bluepower/models/block/nand_gate/right_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_nand_right_on.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/right_on.json index bf193fff..a0a7f775 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_right_on.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/right_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_right", + "parent": "bluepower:block/nand_gate/right", "textures": { "bluestone_right": "bluepower:base/bluestone_on", "torch_right": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_right_on_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/right_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_nand_right_on_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/right_on_z.json index f695dd78..44915006 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_nand_right_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/right_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_nand_right_z", + "parent": "bluepower:block/nand_gate/right_z", "textures": { "bluestone_right": "bluepower:base/bluestone_on", "torch_right": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_nand_right_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/right_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_nand_right_z.json rename to src/main/resources/assets/bluepower/models/block/nand_gate/right_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back.json b/src/main/resources/assets/bluepower/models/block/not_gate/back.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_not_back.json rename to src/main/resources/assets/bluepower/models/block/not_gate/back.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back_on.json b/src/main/resources/assets/bluepower/models/block/not_gate/back_on.json similarity index 75% rename from src/main/resources/assets/bluepower/models/block/gate_not_back_on.json rename to src/main/resources/assets/bluepower/models/block/not_gate/back_on.json index 109cca75..684a5299 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_not_back_on.json +++ b/src/main/resources/assets/bluepower/models/block/not_gate/back_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_not_back", + "parent": "bluepower:block/not_gate/back", "textures": { "bluestone_in": "bluepower:base/bluestone_on", "torch_middle": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json b/src/main/resources/assets/bluepower/models/block/not_gate/back_on_z.json similarity index 74% rename from src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json rename to src/main/resources/assets/bluepower/models/block/not_gate/back_on_z.json index 47467e17..1d99240f 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_not_back_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/not_gate/back_on_z.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_not_back_z", + "parent": "bluepower:block/not_gate/back_z", "textures": { "bluestone_in": "bluepower:base/bluestone_on", "torch_middle": "bluepower:blocks/bluestone_torch_off" diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_back_z.json b/src/main/resources/assets/bluepower/models/block/not_gate/back_z.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_not_back_z.json rename to src/main/resources/assets/bluepower/models/block/not_gate/back_z.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_blank.json b/src/main/resources/assets/bluepower/models/block/not_gate/blank.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_not_blank.json rename to src/main/resources/assets/bluepower/models/block/not_gate/blank.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_front.json b/src/main/resources/assets/bluepower/models/block/not_gate/front.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_not_front.json rename to src/main/resources/assets/bluepower/models/block/not_gate/front.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_right_on.json b/src/main/resources/assets/bluepower/models/block/not_gate/front_on.json similarity index 63% rename from src/main/resources/assets/bluepower/models/block/gate_not_right_on.json rename to src/main/resources/assets/bluepower/models/block/not_gate/front_on.json index bb25ceb8..1a463e63 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_not_right_on.json +++ b/src/main/resources/assets/bluepower/models/block/not_gate/front_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_not_right", + "parent": "bluepower:block/not_gate/front", "textures": { "bluestone_out": "bluepower:base/bluestone_on" } diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_left.json b/src/main/resources/assets/bluepower/models/block/not_gate/left.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_not_left.json rename to src/main/resources/assets/bluepower/models/block/not_gate/left.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_left_on.json b/src/main/resources/assets/bluepower/models/block/not_gate/left_on.json similarity index 63% rename from src/main/resources/assets/bluepower/models/block/gate_not_left_on.json rename to src/main/resources/assets/bluepower/models/block/not_gate/left_on.json index 30344e90..78da29bc 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_not_left_on.json +++ b/src/main/resources/assets/bluepower/models/block/not_gate/left_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_not_left", + "parent": "bluepower:block/not_gate/left", "textures": { "bluestone_out": "bluepower:base/bluestone_on" } diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_right.json b/src/main/resources/assets/bluepower/models/block/not_gate/right.json similarity index 100% rename from src/main/resources/assets/bluepower/models/block/gate_not_right.json rename to src/main/resources/assets/bluepower/models/block/not_gate/right.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_not_front_on.json b/src/main/resources/assets/bluepower/models/block/not_gate/right_on.json similarity index 63% rename from src/main/resources/assets/bluepower/models/block/gate_not_front_on.json rename to src/main/resources/assets/bluepower/models/block/not_gate/right_on.json index 3c26cdd0..3e2de620 100644 --- a/src/main/resources/assets/bluepower/models/block/gate_not_front_on.json +++ b/src/main/resources/assets/bluepower/models/block/not_gate/right_on.json @@ -1,5 +1,5 @@ { - "parent": "bluepower:block/gate_not_front", + "parent": "bluepower:block/not_gate/right", "textures": { "bluestone_out": "bluepower:base/bluestone_on" } From 2cd090df6afe1d75768f8f4c480dfb4a9762d537 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 19:47:41 -0500 Subject: [PATCH 07/25] finished models of not gate --- .../bluepower/blockstates/gate_not.json | 64 +++---- .../models/block/not_gate/blank.json | 3 +- .../models/block/not_gate/blank_z.json | 165 ++++++++++++++++++ .../models/block/not_gate/right_on_z.json | 6 + .../models/block/not_gate/right_z.json | 35 ++++ 5 files changed, 240 insertions(+), 33 deletions(-) create mode 100644 src/main/resources/assets/bluepower/models/block/not_gate/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/not_gate/right_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/not_gate/right_z.json diff --git a/src/main/resources/assets/bluepower/blockstates/gate_not.json b/src/main/resources/assets/bluepower/blockstates/gate_not.json index e7eb31d7..74793eb2 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_not.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_not.json @@ -61,41 +61,41 @@ {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":180}}, {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":270}}, {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":0}}, {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":-180}}, {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":180}}, {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":0}}, {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":90}}, {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":-90}}, {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":270}}, {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":90}}, {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":0}}, {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":90}}, {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":180}}, {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":270}}, {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":0}}, {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":-180}}, {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":180}}, {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":0}}, {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":90}}, {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":-90}}, {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":270}}, {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":90}}, {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":0}}, {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":90}}, {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":180}}, @@ -141,41 +141,41 @@ {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":180}}, {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":270}}, {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":0}}, {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":-180}}, {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":180}}, {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":0}}, {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":90}}, {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":-90}}, {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":270}}, {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":90}}, {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":0}}, {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":90}}, {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":180}}, {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":270}}, {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":0}}, {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":-180}}, {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":180}}, {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":0}}, {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":90}}, {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":-90}}, {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":270}}, {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":90}}, {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":0}}, {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":90}}, {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":180}}, diff --git a/src/main/resources/assets/bluepower/models/block/not_gate/blank.json b/src/main/resources/assets/bluepower/models/block/not_gate/blank.json index 427ac280..71c84c3c 100644 --- a/src/main/resources/assets/bluepower/models/block/not_gate/blank.json +++ b/src/main/resources/assets/bluepower/models/block/not_gate/blank.json @@ -3,7 +3,8 @@ "credit": "Made with Blockbench", "ambientocclusion": false, "textures": { - "gate": "bluepower:blocks/gates/gate" + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" }, "elements": [ { diff --git a/src/main/resources/assets/bluepower/models/block/not_gate/blank_z.json b/src/main/resources/assets/bluepower/models/block/not_gate/blank_z.json new file mode 100644 index 00000000..f12a64c9 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/not_gate/blank_z.json @@ -0,0 +1,165 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0.001], + "to": [16, 2, 16.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [11.999, 2, 7], + "to": [15.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [10, 2, 6], + "to": [12, 2.25, 10], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [6, 2, 9.5], + "to": [10, 2.25, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [10, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 8.5], + "to": [10, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [7, 2, 0], + "to": [9, 2.25, 4.49], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [7, 2, 11.49], + "to": [9, 2.25, 15.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [0.01, 2, 7], + "to": [6.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "rotation": 90, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/not_gate/right_on_z.json b/src/main/resources/assets/bluepower/models/block/not_gate/right_on_z.json new file mode 100644 index 00000000..876c8e63 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/not_gate/right_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/not_gate/right_z", + "textures": { + "bluestone_out": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/not_gate/right_z.json b/src/main/resources/assets/bluepower/models/block/not_gate/right_z.json new file mode 100644 index 00000000..26dd5069 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/not_gate/right_z.json @@ -0,0 +1,35 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_out": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "RightWire", + "from": [6.5, 2, 10], + "to": [9.5, 2.5, 11], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "east": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#bluestone_out"} + } + }, + { + "name": "RightWire", + "from": [7.5, 2, 11], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_out"}, + "west": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_out"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#bluestone_out"} + } + } + ] +} \ No newline at end of file From 6bbc378a62638371f3c2e6778bd36ff9d68ad071 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 15 Feb 2026 23:33:01 -0500 Subject: [PATCH 08/25] added or and nor gates --- .../block/gates/BlockGateAnd.java | 2 +- .../bluepowermod/block/gates/BlockGateOr.java | 20 ++ .../java/com/bluepowermod/init/BPBlocks.java | 5 + .../com/bluepowermod/init/BPCreativeTabs.java | 2 + .../bluepower/blockstates/gate_nor.json | 220 ++++++++++++ .../assets/bluepower/blockstates/gate_or.json | 220 ++++++++++++ .../bluepower/models/block/gate_nor.json | 263 +++++++++++++++ .../bluepower/models/block/gate_or.json | 317 ++++++++++++++++++ .../bluepower/models/block/nor_gate/back.json | 49 +++ .../models/block/nor_gate/back_on.json | 6 + .../models/block/nor_gate/blank.json | 136 ++++++++ .../models/block/nor_gate/blank_z.json | 139 ++++++++ .../models/block/nor_gate/front.json | 93 +++++ .../models/block/nor_gate/front_on.json | 7 + .../models/block/nor_gate/front_on_z.json | 7 + .../models/block/nor_gate/front_z.json | 93 +++++ .../bluepower/models/block/nor_gate/left.json | 48 +++ .../models/block/nor_gate/left_on.json | 6 + .../models/block/nor_gate/left_on_z.json | 6 + .../models/block/nor_gate/left_z.json | 49 +++ .../models/block/nor_gate/right.json | 49 +++ .../models/block/nor_gate/right_on.json | 6 + .../bluepower/models/block/or_gate/back.json | 49 +++ .../models/block/or_gate/back_on.json | 6 + .../bluepower/models/block/or_gate/blank.json | 160 +++++++++ .../models/block/or_gate/blank_z.json | 163 +++++++++ .../bluepower/models/block/or_gate/front.json | 121 +++++++ .../models/block/or_gate/front_on.json | 8 + .../models/block/or_gate/front_on_z.json | 8 + .../models/block/or_gate/front_z.json | 125 +++++++ .../bluepower/models/block/or_gate/left.json | 48 +++ .../models/block/or_gate/left_on.json | 6 + .../models/block/or_gate/left_on_z.json | 6 + .../models/block/or_gate/left_z.json | 49 +++ .../bluepower/models/block/or_gate/right.json | 49 +++ .../models/block/or_gate/right_on.json | 6 + .../bluepower/models/item/gate_nor.json | 3 + .../assets/bluepower/models/item/gate_or.json | 3 + 38 files changed, 2552 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateOr.java create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_nor.json create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_or.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_nor.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_or.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_nor.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_or.json diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java index 5bd3c7da..bc3cc350 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java @@ -11,7 +11,7 @@ import java.util.Map; public class BlockGateAnd extends BlockGateBase { - private final boolean inverted; + protected final boolean inverted; public BlockGateAnd(boolean inverted){ this.inverted = inverted; diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateOr.java b/src/main/java/com/bluepowermod/block/gates/BlockGateOr.java new file mode 100644 index 00000000..d77389c6 --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateOr.java @@ -0,0 +1,20 @@ +package com.bluepowermod.block.gates; + +import net.minecraft.core.BlockPos; +import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.block.state.BlockState; + +import java.util.Map; + +public class BlockGateOr extends BlockGateAnd{ + public BlockGateOr(boolean inverted) { + super(inverted); + } + + @Override + public byte computeRedstone(Side side, byte back, byte front, byte left, byte right) { + boolean output = back > 0 || left > 0 || right > 0; + return (byte) (output != inverted ? 16: 0); + } +} + diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 2c3b4f9f..2e6a09f2 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -22,6 +22,7 @@ import com.bluepowermod.block.*; import com.bluepowermod.block.gates.BlockGateAnd; import com.bluepowermod.block.gates.BlockGateNot; +import com.bluepowermod.block.gates.BlockGateOr; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; import com.bluepowermod.block.lighting.BlockLampSurface; @@ -272,13 +273,17 @@ public class BPBlocks { public static final RegistryObject blockGateAND = BLOCKS.register("gate_and", () -> new BlockGateAnd(false)); public static final RegistryObject blockGateNOT = BLOCKS.register("gate_not", BlockGateNot::new); + public static final RegistryObject blockGateOR = BLOCKS.register("gate_or", () -> new BlockGateOr(false)); public static final RegistryObject blockNullCell = BLOCKS.register("gate_nullcell", BlockNullCell::new); public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateAnd(true)); + public static final RegistryObject blockGateNOR = BLOCKS.register("gate_nor", () -> new BlockGateOr(true)); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateNOT.getKey().location().getPath(), () -> new BlockItem(blockGateNOT.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateOR.getKey().location().getPath(), () -> new BlockItem(blockGateOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateNAND.getKey().location().getPath(), () -> new BlockItem(blockGateNAND.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateNOR.getKey().location().getPath(), () -> new BlockItem(blockGateNOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockNullCell.getKey().location().getPath(), () -> new BlockItem(blockNullCell.get(), new Item.Properties())); } diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index 7430f321..13cfc35d 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -64,7 +64,9 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.accept(BPBlocks.blulectric_cable.get()); event.accept(BPBlocks.blockGateAND.get()); event.accept(BPBlocks.blockGateNOT.get()); + event.accept(BPBlocks.blockGateOR.get()); event.accept(BPBlocks.blockGateNAND.get()); + event.accept(BPBlocks.blockGateNOR.get()); event.accept(BPBlocks.blockNullCell.get()); }else if(event.getTab() == lighting.get()){ event.acceptAll(BPBlocks.allLamps.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); diff --git a/src/main/resources/assets/bluepower/blockstates/gate_nor.json b/src/main/resources/assets/bluepower/blockstates/gate_nor.json new file mode 100644 index 00000000..e5557c6a --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_nor.json @@ -0,0 +1,220 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_or.json b/src/main/resources/assets/bluepower/blockstates/gate_or.json new file mode 100644 index 00000000..f4cc7898 --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_or.json @@ -0,0 +1,220 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_nor.json b/src/main/resources/assets/bluepower/models/block/gate_nor.json new file mode 100644 index 00000000..4a19b242 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_nor.json @@ -0,0 +1,263 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "bluestone_back": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4.5], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [8.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0, 2, 7], + "to": [6.49, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 5], + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 5, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 5], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 5], + "to": [9.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [7, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "RightWire", + "from": [9, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 180, "texture": "#bluestone_back"} + } + }, + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 270, "texture": "#bluestone_back"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [8, 9, 10, 11, 12] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [13] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [14] + }, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [15] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_or.json b/src/main/resources/assets/bluepower/models/block/gate_or.json new file mode 100644 index 00000000..1aa7526f --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_or.json @@ -0,0 +1,317 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off", + "bluestone_back": "bluepower:base/bluestone_off", + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 1.001], + "to": [8.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-0.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [8.5, 2, 1.001], + "to": [9.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 3], "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 4.001], + "to": [9, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 0.5], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [8.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0, 2, 7], + "to": [6.49, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + }, + { + "name": "Front1", + "from": [7, 2, 0.5], + "to": [9, 7, 4.5], + "shade": false, + "faces": { + "east": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "Front2", + "from": [6, 2, 1.5], + "to": [10, 7, 3.5], + "shade": false, + "faces": { + "north": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 3.5], + "to": [8.5, 2.5, 5], + "faces": { + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1.5], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 5], + "to": [9.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 1.5], + "to": [9, 6, 3.5], + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [7, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "RightWire", + "from": [9, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 180, "texture": "#bluestone_back"} + } + }, + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 270, "texture": "#bluestone_back"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [10, 11, 12, 13, 14, 15, 16, 17] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [18] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [19] + }, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [20] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/back.json b/src/main/resources/assets/bluepower/models/block/nor_gate/back.json new file mode 100644 index 00000000..28aff17a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/back.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_back": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 270, "texture": "#bluestone_back"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/back_on.json b/src/main/resources/assets/bluepower/models/block/nor_gate/back_on.json new file mode 100644 index 00000000..a7b7b7fe --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/back_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/nor_gate/back", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/blank.json b/src/main/resources/assets/bluepower/models/block/nor_gate/blank.json new file mode 100644 index 00000000..49559c09 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/blank.json @@ -0,0 +1,136 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4.5], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [8.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0, 2, 7], + "to": [6.49, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/blank_z.json b/src/main/resources/assets/bluepower/models/block/nor_gate/blank_z.json new file mode 100644 index 00000000..747daec3 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/blank_z.json @@ -0,0 +1,139 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0.001], + "to": [16, 2, 16.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [11.499, 2, 7], + "to": [15.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [9.5, 2, 6], + "to": [11.5, 2.25, 10], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [9.5, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 8.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [7, 2, 0], + "to": [9, 2.25, 6.49], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [7, 2, 9.49], + "to": [9, 2.25, 15.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [0.01, 2, 7], + "to": [6.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "rotation": 90, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/front.json b/src/main/resources/assets/bluepower/models/block/nor_gate/front.json new file mode 100644 index 00000000..9ce20091 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/front.json @@ -0,0 +1,93 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 0.5], + "to": [8.5, 2.5, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -3]}, + "faces": { + "east": {"uv": [0, 0, 4.5, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 4.5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 4.5], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 5], + "to": [9.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/front_on.json b/src/main/resources/assets/bluepower/models/block/nor_gate/front_on.json new file mode 100644 index 00000000..a678e21f --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/front_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/nor_gate/front", + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/front_on_z.json b/src/main/resources/assets/bluepower/models/block/nor_gate/front_on_z.json new file mode 100644 index 00000000..32e66a62 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/front_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/nor_gate/front_z", + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/front_z.json b/src/main/resources/assets/bluepower/models/block/nor_gate/front_z.json new file mode 100644 index 00000000..13021034 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/front_z.json @@ -0,0 +1,93 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Middle1", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_middle"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 7.5], + "to": [15.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 4.5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 4.5], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 6.5], + "to": [11, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/left.json b/src/main/resources/assets/bluepower/models/block/nor_gate/left.json new file mode 100644 index 00000000..534b6d3a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/left.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [7, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 7, 1], "texture": "#bluestone_left"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/left_on.json b/src/main/resources/assets/bluepower/models/block/nor_gate/left_on.json new file mode 100644 index 00000000..b9698fd3 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/nor_gate/left", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/left_on_z.json b/src/main/resources/assets/bluepower/models/block/nor_gate/left_on_z.json new file mode 100644 index 00000000..3d87c0b7 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/left_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/nor_gate/left_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/left_z.json b/src/main/resources/assets/bluepower/models/block/nor_gate/left_z.json new file mode 100644 index 00000000..04b23b1d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/left_z.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 90, "texture": "#bluestone_left"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/right.json b/src/main/resources/assets/bluepower/models/block/nor_gate/right.json new file mode 100644 index 00000000..e0158c59 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/right.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "RightWire", + "from": [9, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 180, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/right_on.json b/src/main/resources/assets/bluepower/models/block/nor_gate/right_on.json new file mode 100644 index 00000000..c0f9b120 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/nor_gate/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/back.json b/src/main/resources/assets/bluepower/models/block/or_gate/back.json new file mode 100644 index 00000000..28aff17a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/back.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_back": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 270, "texture": "#bluestone_back"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/back_on.json b/src/main/resources/assets/bluepower/models/block/or_gate/back_on.json new file mode 100644 index 00000000..42a7437f --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/back_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/or_gate/back", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/blank.json b/src/main/resources/assets/bluepower/models/block/or_gate/blank.json new file mode 100644 index 00000000..43b90985 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/blank.json @@ -0,0 +1,160 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 1.001], + "to": [8.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-0.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [8.5, 2, 1.001], + "to": [9.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 3], "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 4.001], + "to": [9, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 0.5], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [8.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 0.5]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0, 2, 7], + "to": [6.49, 2.25, 9], + "faces": { + "north": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/blank_z.json b/src/main/resources/assets/bluepower/models/block/or_gate/blank_z.json new file mode 100644 index 00000000..dc2e56cc --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/blank_z.json @@ -0,0 +1,163 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0.001], + "to": [16, 2, 16.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [11.999, 2, 6.5], + "to": [14.999, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [11.999, 2, 8.5], + "to": [14.999, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 3], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [11.499, 2, 7], + "to": [11.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [9.5, 2, 6], + "to": [11.5, 2.25, 10], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [9.5, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 8.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [7, 2, 0], + "to": [9, 2.25, 6.49], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 0], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [7, 2, 9.49], + "to": [9, 2.25, 15.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [0.01, 2, 7], + "to": [6.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "rotation": 90, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/front.json b/src/main/resources/assets/bluepower/models/block/or_gate/front.json new file mode 100644 index 00000000..5c357852 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/front.json @@ -0,0 +1,121 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + }, + { + "name": "Front1", + "from": [7, 2, 0.5], + "to": [9, 7, 4.5], + "shade": false, + "faces": { + "east": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "Front2", + "from": [6, 2, 1.5], + "to": [10, 7, 3.5], + "shade": false, + "faces": { + "north": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 3.5], + "to": [8.5, 2.5, 5], + "faces": { + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1.5], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 5], + "to": [9.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 1.5], + "to": [9, 6, 3.5], + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/front_on.json b/src/main/resources/assets/bluepower/models/block/or_gate/front_on.json new file mode 100644 index 00000000..9135557e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/front_on.json @@ -0,0 +1,8 @@ +{ + "parent": "bluepower:block/or_gate/front", + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/front_on_z.json b/src/main/resources/assets/bluepower/models/block/or_gate/front_on_z.json new file mode 100644 index 00000000..e8e7b999 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/front_on_z.json @@ -0,0 +1,8 @@ +{ + "parent": "bluepower:block/or_gate/front_z", + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/front_z.json b/src/main/resources/assets/bluepower/models/block/or_gate/front_z.json new file mode 100644 index 00000000..7032f86d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/front_z.json @@ -0,0 +1,125 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Middle1", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_middle"} + } + }, + { + "name": "Front1", + "from": [11.5, 2, 7], + "to": [15.5, 7, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "Front2", + "from": [12.5, 2, 6], + "to": [14.5, 7, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 7.5], + "to": [12.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 6.5], + "to": [11, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [12.5, 2, 7], + "to": [14.5, 6, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/left.json b/src/main/resources/assets/bluepower/models/block/or_gate/left.json new file mode 100644 index 00000000..534b6d3a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/left.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [7, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 7, 1], "texture": "#bluestone_left"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/left_on.json b/src/main/resources/assets/bluepower/models/block/or_gate/left_on.json new file mode 100644 index 00000000..3bbb22e4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/or_gate/left", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/left_on_z.json b/src/main/resources/assets/bluepower/models/block/or_gate/left_on_z.json new file mode 100644 index 00000000..7041931d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/left_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/or_gate/left_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/left_z.json b/src/main/resources/assets/bluepower/models/block/or_gate/left_z.json new file mode 100644 index 00000000..04b23b1d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/left_z.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 90, "texture": "#bluestone_left"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/right.json b/src/main/resources/assets/bluepower/models/block/or_gate/right.json new file mode 100644 index 00000000..e0158c59 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/right.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "RightWire", + "from": [9, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 180, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/right_on.json b/src/main/resources/assets/bluepower/models/block/or_gate/right_on.json new file mode 100644 index 00000000..3e2ddf06 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/or_gate/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/item/gate_nor.json b/src/main/resources/assets/bluepower/models/item/gate_nor.json new file mode 100644 index 00000000..5aaf52ba --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_nor.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_nor" +} diff --git a/src/main/resources/assets/bluepower/models/item/gate_or.json b/src/main/resources/assets/bluepower/models/item/gate_or.json new file mode 100644 index 00000000..610b6085 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_or.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_or" +} From 7039d108230caf0840c9e8d656bb87ad5c16bac0 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Tue, 17 Feb 2026 23:37:30 -0500 Subject: [PATCH 09/25] added models for buffer gate --- .../bluepower/blockstates/gate_buffer.json | 220 ++++++++ .../models/block/buffer_gate/back.json | 49 ++ .../models/block/buffer_gate/back_on.json | 6 + .../models/block/buffer_gate/back_on_z.json | 6 + .../models/block/buffer_gate/back_z.json | 48 ++ .../models/block/buffer_gate/blank.json | 286 ++++++++++ .../models/block/buffer_gate/blank_z.json | 286 ++++++++++ .../models/block/buffer_gate/front.json | 121 ++++ .../models/block/buffer_gate/front_on.json | 8 + .../models/block/buffer_gate/front_on_z.json | 8 + .../models/block/buffer_gate/front_z.json | 125 ++++ .../models/block/buffer_gate/left.json | 89 +++ .../models/block/buffer_gate/left_on.json | 6 + .../models/block/buffer_gate/left_on_z.json | 6 + .../models/block/buffer_gate/left_z.json | 89 +++ .../models/block/buffer_gate/right.json | 89 +++ .../models/block/buffer_gate/right_on.json | 6 + .../models/block/buffer_gate/right_on_z.json | 6 + .../models/block/buffer_gate/right_z.json | 89 +++ .../bluepower/models/block/gate_buffer.json | 534 ++++++++++++++++++ .../bluepower/models/item/gate_buffer.json | 3 + 21 files changed, 2080 insertions(+) create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_buffer.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/back_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/right_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/right_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_buffer.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_buffer.json diff --git a/src/main/resources/assets/bluepower/blockstates/gate_buffer.json b/src/main/resources/assets/bluepower/blockstates/gate_buffer.json new file mode 100644 index 00000000..eb528dd0 --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_buffer.json @@ -0,0 +1,220 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/back.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/back.json new file mode 100644 index 00000000..28aff17a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/back.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_back": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 270, "texture": "#bluestone_back"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/back_on.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/back_on.json new file mode 100644 index 00000000..d4b34fdd --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/back_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/buffer_gate/back", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/back_on_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/back_on_z.json new file mode 100644 index 00000000..63030e39 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/back_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/buffer_gate/back_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/back_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/back_z.json new file mode 100644 index 00000000..534b6d3a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/back_z.json @@ -0,0 +1,48 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [7, 2.5, 8.5], + "faces": { + "north": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 7, 1], "texture": "#bluestone_left"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/blank.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/blank.json new file mode 100644 index 00000000..51fc4e32 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/blank.json @@ -0,0 +1,286 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 1.001], + "to": [8.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.501, 2, 1.5], + "to": [12.501, 2.25, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12.501, 2, 2.5], + "to": [13.501, 2.25, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.501, 2, 3.5], + "to": [12.501, 2.25, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 0, 0], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [13.501, 2, 8], + "to": [16.001, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 2.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [14.501, 2, 7], + "to": [16.001, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12.501, 2, 4], + "to": [14.501, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [3.501, 2, 1.5], + "to": [6.501, 2.25, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [2.501, 2, 2.5], + "to": [3.501, 2.25, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0.001, 2, 8], + "to": [2.501, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 2.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0.001, 2, 7], + "to": [1.501, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [3.501, 2, 3.5], + "to": [4.501, 2.25, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [1.501, 2, 4], + "to": [3.501, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [8.5, 2, 1.001], + "to": [9.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 3], "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 4.001], + "to": [9, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 0.5], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [8.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/blank_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/blank_z.json new file mode 100644 index 00000000..a8a98a1b --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/blank_z.json @@ -0,0 +1,286 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0.001], + "to": [16, 2, 16.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [11.999, 2, 6.5], + "to": [14.999, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12.5, 2, 9.501], + "to": [14.5, 2.25, 12.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12, 2, 12.501], + "to": [13.5, 2.25, 13.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11, 2, 11.501], + "to": [12.5, 2.25, 12.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 0, 0], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [7, 2, 13.501], + "to": [8, 2.25, 16.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 2.5], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [8, 2, 14.501], + "to": [9, 2.25, 16.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [8, 2, 12.501], + "to": [12, 2.25, 14.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [12.5, 2, 3.501], + "to": [14.5, 2.25, 6.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [12, 2, 2.501], + "to": [13.5, 2.25, 3.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [7, 2, 0.001], + "to": [8, 2.25, 2.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 2.5], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [8, 2, 0.001], + "to": [9, 2.25, 1.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [11, 2, 3.501], + "to": [12.5, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [8, 2, 1.501], + "to": [12, 2.25, 3.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [11.999, 2, 8.5], + "to": [14.999, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 3], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [11.499, 2, 7], + "to": [11.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [9.5, 2, 6], + "to": [11.5, 2.25, 10], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [9.5, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 8.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [0.01, 2, 7], + "to": [6.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "rotation": 90, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/front.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/front.json new file mode 100644 index 00000000..5c357852 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/front.json @@ -0,0 +1,121 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + }, + { + "name": "Front1", + "from": [7, 2, 0.5], + "to": [9, 7, 4.5], + "shade": false, + "faces": { + "east": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "Front2", + "from": [6, 2, 1.5], + "to": [10, 7, 3.5], + "shade": false, + "faces": { + "north": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 3.5], + "to": [8.5, 2.5, 5], + "faces": { + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1.5], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 5], + "to": [9.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 1.5], + "to": [9, 6, 3.5], + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/front_on.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/front_on.json new file mode 100644 index 00000000..b03383b7 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/front_on.json @@ -0,0 +1,8 @@ +{ + "parent": "bluepower:block/buffer_gate/front", + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/front_on_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/front_on_z.json new file mode 100644 index 00000000..2bf0942d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/front_on_z.json @@ -0,0 +1,8 @@ +{ + "parent": "bluepower:block/buffer_gate/front_z", + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/front_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/front_z.json new file mode 100644 index 00000000..7032f86d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/front_z.json @@ -0,0 +1,125 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Middle1", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_middle"} + } + }, + { + "name": "Front1", + "from": [11.5, 2, 7], + "to": [15.5, 7, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "Front2", + "from": [12.5, 2, 6], + "to": [14.5, 7, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 7.5], + "to": [12.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 6.5], + "to": [11, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [12.5, 2, 7], + "to": [14.5, 6, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/left.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/left.json new file mode 100644 index 00000000..106c85ea --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/left.json @@ -0,0 +1,89 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [4, 2, 2], + "to": [6.5, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 2.5]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [2, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-1, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [3, 2, 3], + "to": [4, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 3.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [2, 2, 4.5], + "to": [3, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/left_on.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/left_on.json new file mode 100644 index 00000000..0cd4333d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/buffer_gate/left", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/left_on_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/left_on_z.json new file mode 100644 index 00000000..2d91332c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/left_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/buffer_gate/left_z", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/left_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/left_z.json new file mode 100644 index 00000000..4aa2c4be --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/left_z.json @@ -0,0 +1,89 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "LeftWire", + "from": [13, 2, 4], + "to": [14, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 2], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [11.5, 2, 3], + "to": [13, 2.5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [8.5, 2, 2], + "to": [11.5, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 270, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/right.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/right.json new file mode 100644 index 00000000..3f03d713 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/right.json @@ -0,0 +1,89 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "RightWire", + "from": [9.5, 2, 2], + "to": [12, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [8.5, 0, 2.5]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [14, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [13, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [12, 2, 3], + "to": [13, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [11, 0, 3.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [13, 2, 4.5], + "to": [14, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [12, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/right_on.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/right_on.json new file mode 100644 index 00000000..0944e004 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/buffer_gate/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/right_on_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/right_on_z.json new file mode 100644 index 00000000..18a291b1 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/right_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/buffer_gate/right_z", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/right_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/right_z.json new file mode 100644 index 00000000..0301b479 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/right_z.json @@ -0,0 +1,89 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "RightWire", + "from": [13, 2, 9.5], + "to": [14, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [7.5, 2, 14], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [11.5, 2, 12], + "to": [13, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [8.5, 2, 13], + "to": [11.5, 2.5, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 270, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_buffer.json b/src/main/resources/assets/bluepower/models/block/gate_buffer.json new file mode 100644 index 00000000..f31a54df --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_buffer.json @@ -0,0 +1,534 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_middle": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off", + "bluestone_right": "bluepower:base/bluestone_off", + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0.001, 0, 0], + "to": [16.001, 2, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 1.001], + "to": [8.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.501, 2, 1.5], + "to": [12.501, 2.25, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12.501, 2, 2.5], + "to": [13.501, 2.25, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.501, 2, 3.5], + "to": [12.501, 2.25, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 0, 0], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [13.501, 2, 8], + "to": [16.001, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 2.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [14.501, 2, 7], + "to": [16.001, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12.501, 2, 4], + "to": [14.501, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [3.501, 2, 1.5], + "to": [6.501, 2.25, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [2.501, 2, 2.5], + "to": [3.501, 2.25, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0.001, 2, 8], + "to": [2.501, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 2.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [0.001, 2, 7], + "to": [1.501, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [3.501, 2, 3.5], + "to": [4.501, 2.25, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 1.5], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeftBase", + "from": [1.501, 2, 4], + "to": [3.501, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [8.5, 2, 1.001], + "to": [9.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 3], "texture": "#gate"} + } + }, + { + "name": "FrontBase", + "from": [7, 2, 4.001], + "to": [9, 2.25, 4.501], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 0.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 0.5], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [6, 2, 4.5], + "to": [10, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [6.5, 2, 6.5], + "to": [8.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "CenterBase", + "from": [8.5, 2, 6.5], + "to": [9.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 0.5, 4], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 9.5], + "to": [9, 2.25, 15.99], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6.5], "texture": "#gate"} + } + }, + { + "name": "BackWire", + "from": [7.5, 2, 9], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 7, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 7, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 6], + "to": [9, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 7], + "to": [10, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_middle"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 7], + "to": [9, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_middle"} + } + }, + { + "name": "Front1", + "from": [7, 2, 0.5], + "to": [9, 7, 4.5], + "shade": false, + "faces": { + "east": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "Front2", + "from": [6, 2, 1.5], + "to": [10, 7, 3.5], + "shade": false, + "faces": { + "north": {"uv": [6, 5, 10, 10], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 10], "texture": "#torch_front"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 3.5], + "to": [8.5, 2.5, 5], + "faces": { + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1.5], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 5], + "to": [9.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 9, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 1.5], + "to": [9, 6, 3.5], + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "LeftWire", + "from": [4, 2, 2], + "to": [6.5, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 2.5]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [2, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-1, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [3, 2, 3], + "to": [4, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 3.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "LeftWire", + "from": [2, 2, 4.5], + "to": [3, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [9.5, 2, 2], + "to": [12, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [8.5, 0, 2.5]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2.5, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [14, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [13, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [12, 2, 3], + "to": [13, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [11, 0, 3.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [13, 2, 4.5], + "to": [14, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [12, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1.5], "rotation": 180, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [20] + }, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [21, 22, 23, 24, 25, 26, 27, 28] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [29, 30, 31, 32] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [33, 34, 35, 36] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/item/gate_buffer.json b/src/main/resources/assets/bluepower/models/item/gate_buffer.json new file mode 100644 index 00000000..64006c88 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_buffer.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_buffer" +} From 089182aa22d34ba74382b6d0a269b9f39ec3d043 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Thu, 19 Feb 2026 21:31:56 -0500 Subject: [PATCH 10/25] added buffer gate --- .../com/bluepowermod/block/gates/BlockGateBuffer.java | 8 ++++++++ .../java/com/bluepowermod/block/gates/BlockGateNot.java | 6 +++++- src/main/java/com/bluepowermod/init/BPBlocks.java | 3 +++ src/main/java/com/bluepowermod/init/BPCreativeTabs.java | 1 + 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateBuffer.java diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateBuffer.java b/src/main/java/com/bluepowermod/block/gates/BlockGateBuffer.java new file mode 100644 index 00000000..403f7c68 --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateBuffer.java @@ -0,0 +1,8 @@ +package com.bluepowermod.block.gates; + +public class BlockGateBuffer extends BlockGateNot{ + @Override + protected byte getOutput(byte back) { + return (byte) (back > 0 ? 16 : 0); + } +} diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java index 45995133..92b97ea0 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java @@ -20,7 +20,7 @@ protected Map getSidePower(BlockGetter worldIn, BlockState state, Bl BlockState stateBack = worldIn.getBlockState(posBack); byte back = (byte) stateBack.getSignal(worldIn, posBack, sideBack.getOpposite()); if(stateBack.getBlock() instanceof RedStoneWireBlock){back = stateBack.getValue(RedStoneWireBlock.POWER).byteValue();} - byte output = (byte) (back > 0 ? 0 : 16); + byte output = getOutput(back); map.put(Side.FRONT, output); map.put(Side.LEFT, output); map.put(Side.RIGHT, output); @@ -28,6 +28,10 @@ protected Map getSidePower(BlockGetter worldIn, BlockState state, Bl return map; } + protected byte getOutput(byte back){ + return (byte) (back > 0 ? 0 : 16); + } + @Override protected boolean isSideSource(Side side) { return side == Side.FRONT || side == Side.LEFT || side == Side.RIGHT; diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 2e6a09f2..3b44ec4b 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -21,6 +21,7 @@ import com.bluepowermod.api.wire.redstone.RedwireType; import com.bluepowermod.block.*; import com.bluepowermod.block.gates.BlockGateAnd; +import com.bluepowermod.block.gates.BlockGateBuffer; import com.bluepowermod.block.gates.BlockGateNot; import com.bluepowermod.block.gates.BlockGateOr; import com.bluepowermod.block.gates.BlockNullCell; @@ -277,6 +278,7 @@ public class BPBlocks { public static final RegistryObject blockNullCell = BLOCKS.register("gate_nullcell", BlockNullCell::new); public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateAnd(true)); public static final RegistryObject blockGateNOR = BLOCKS.register("gate_nor", () -> new BlockGateOr(true)); + public static final RegistryObject blockGateBUFFER = BLOCKS.register("gate_buffer", BlockGateBuffer::new); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); @@ -285,6 +287,7 @@ public class BPBlocks { BPItems.ITEMS.register(blockGateNAND.getKey().location().getPath(), () -> new BlockItem(blockGateNAND.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateNOR.getKey().location().getPath(), () -> new BlockItem(blockGateNOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockNullCell.getKey().location().getPath(), () -> new BlockItem(blockNullCell.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateBUFFER.getKey().location().getPath(), () -> new BlockItem(blockGateBUFFER.get(), new Item.Properties())); } public static final RegistryObject blockRedAlloyWire = BLOCKS.register(RedwireType.RED_ALLOY.getName() + "_wire", () -> new BlockAlloyWire(RedwireType.RED_ALLOY.getName()).setWIP(true)); diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index 13cfc35d..6b8b7686 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -67,6 +67,7 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.accept(BPBlocks.blockGateOR.get()); event.accept(BPBlocks.blockGateNAND.get()); event.accept(BPBlocks.blockGateNOR.get()); + event.accept(BPBlocks.blockGateBUFFER.get()); event.accept(BPBlocks.blockNullCell.get()); }else if(event.getTab() == lighting.get()){ event.acceptAll(BPBlocks.allLamps.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); From 34657de263c54a5242666d7f729b54ae76dfa943 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Thu, 19 Feb 2026 22:55:16 -0500 Subject: [PATCH 11/25] started work on models for xnor and xor gates --- .../models/block/xnor_gate/blank.json | 280 +++++++++++++++++ .../models/block/xnor_gate/blank_z.json | 282 ++++++++++++++++++ .../bluepower/models/block/xor_gate/back.json | 104 +++++++ .../models/block/xor_gate/back_on.json | 7 + .../models/block/xor_gate/back_on_z.json | 7 + .../models/block/xor_gate/back_z.json | 104 +++++++ .../models/block/xor_gate/blank.json | 267 +++++++++++++++++ .../models/block/xor_gate/blank_z.json | 268 +++++++++++++++++ .../models/block/xor_gate/front.json | 91 ++++++ .../models/block/xor_gate/front_on.json | 7 + .../models/block/xor_gate/front_on_z.json | 7 + .../models/block/xor_gate/front_z.json | 91 ++++++ .../bluepower/models/block/xor_gate/left.json | 80 +++++ .../models/block/xor_gate/left_on.json | 7 + .../models/block/xor_gate/left_on_z.json | 7 + .../models/block/xor_gate/left_z.json | 80 +++++ .../models/block/xor_gate/right.json | 80 +++++ .../models/block/xor_gate/right_on.json | 7 + .../models/block/xor_gate/right_on_z.json | 7 + .../models/block/xor_gate/right_z.json | 80 +++++ 20 files changed, 1863 insertions(+) create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/blank.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/blank.json new file mode 100644 index 00000000..2eaa6e43 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/blank.json @@ -0,0 +1,280 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [3.5, 2, 4.001], + "to": [12.5, 2.25, 5.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 9, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [9.5, 2, 3.001], + "to": [11.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [4.5, 2, 3.001], + "to": [6.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-2.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [2.5, 2, 5.001], + "to": [6.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [9.5, 2, 5.001], + "to": [13.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.5, 2, 12.001], + "to": [6.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 12.001], + "to": [12.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.5, 2, 11.001], + "to": [6.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 11.001], + "to": [13.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [6, 2, 9.501], + "to": [10, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-1, 0, 5.5]}, + "faces": { + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 10.001], + "to": [4.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [11.5, 2, 10.001], + "to": [14.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 9.001], + "to": [3.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [12.5, 2, 9.001], + "to": [14.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 1.001], + "to": [9.5, 2.25, 4.001], + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 11.001], + "to": [9.5, 2.25, 13.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 9.5]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [3.5, 2, 7.001], + "to": [12.5, 2.25, 9.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.001, 2, 7], + "to": [3.491, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [12.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/blank_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/blank_z.json new file mode 100644 index 00000000..528f8d6f --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/blank_z.json @@ -0,0 +1,282 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [10.999, 2, 3.5], + "to": [11.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 9, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [11.999, 2, 9.5], + "to": [12.999, 2.25, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [11.999, 2, 4.5], + "to": [12.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [8.999, 2, 2.5], + "to": [10.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [8.999, 2, 9.5], + "to": [10.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.999, 2, 3.5], + "to": [3.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.999, 2, 9.5], + "to": [3.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.999, 2, 2.5], + "to": [4.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.999, 2, 9.5], + "to": [4.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [4.999, 2, 6], + "to": [6.499, 2.25, 10], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [4.999, 2, 1.5], + "to": [5.999, 2.25, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [4.999, 2, 11.5], + "to": [5.999, 2.25, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [5.999, 2, 1.5], + "to": [6.999, 2.25, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [5.999, 2, 12.5], + "to": [6.999, 2.25, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [11.999, 2, 6.5], + "to": [14.999, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [2.499, 2, 6.5], + "to": [4.999, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.499, 2, 3.5], + "to": [8.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 3.491], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 12.49], + "to": [9, 2.25, 15.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back.json new file mode 100644 index 00000000..087a1ebf --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back.json @@ -0,0 +1,104 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_back": "bluepower:base/bluestone_off", + "torch_middle": "bluepower:blocks/bluestone_torch_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Middle", + "from": [ 7, 2, 7.5 ], + "to": [ 9, 5, 9.5 ], + "faces": { + "up": { "texture": "#torch_middle", "uv": [ 7, 6, 9, 8 ] } + } + }, + { + "name": "TopWire", + "from": [ 7.5, 2, 13 ], + "to": [ 8.5, 2.5, 16 ], + "faces": { + "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, + "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, + "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 3 ] } + } + }, + { + "name": "TopWire", + "from": [ 6.5, 2, 11 ], + "to": [ 7.5, 2.5, 13 ], + "faces": { + "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, + "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, + "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ] } + } + }, + { + "name": "TopWire", + "from": [ 7.5, 2, 9.5 ], + "to": [ 8.5, 2.5, 11 ], + "faces": { + "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, + "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, + "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ] } + } + }, + { + "name": "Middle1", + "from": [ 7, 2, 6.5 ], + "to": [ 9, 6, 10.5 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, + "west": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } + } + }, + { + "name": "Middle2", + "from": [ 6, 2, 7.5 ], + "to": [ 10, 6, 9.5 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, + "south": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json new file mode 100644 index 00000000..3df85100 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/back", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on", + "torch_middle": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json new file mode 100644 index 00000000..c49bfc03 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/back_z", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on", + "torch_middle": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json new file mode 100644 index 00000000..ca4f87af --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json @@ -0,0 +1,104 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_back": "bluepower:base/bluestone_off", + "torch_middle": "bluepower:blocks/bluestone_torch_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Middle", + "from": [ 6.5, 2, 7 ], + "to": [ 8.5, 5, 9 ], + "faces": { + "up": { "texture": "#torch_middle", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } + } + }, + { + "name": "TopWire", + "from": [ 0, 2, 7.5 ], + "to": [ 3, 2.5, 8.5 ], + "faces": { + "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, + "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, + "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 3 ], "rotation": 90 } + } + }, + { + "name": "TopWire", + "from": [ 3, 2, 6.5 ], + "to": [ 5, 2.5, 7.5 ], + "faces": { + "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, + "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, + "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ], "rotation": 90 } + } + }, + { + "name": "TopWire", + "from": [ 5, 2, 7.5 ], + "to": [ 6.5, 2.5, 8.5 ], + "faces": { + "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, + "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, + "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, + "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ], "rotation": 90 } + } + }, + { + "name": "Middle1", + "from": [ 5.5, 2, 7 ], + "to": [ 9.5, 6, 9 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, + "south": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } + } + }, + { + "name": "Middle2", + "from": [ 6.5, 2, 6 ], + "to": [ 8.5, 6, 10 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, + "west": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/blank.json b/src/main/resources/assets/bluepower/models/block/xor_gate/blank.json new file mode 100644 index 00000000..22f170a9 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/blank.json @@ -0,0 +1,267 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [3.5, 2, 4.001], + "to": [12.5, 2.25, 5.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 9, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [4.5, 2, 3.001], + "to": [11.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-2.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 7, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 3.001], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -4]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [2.5, 2, 5.001], + "to": [6.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [9.5, 2, 5.001], + "to": [13.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.5, 2, 12.001], + "to": [6.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 12.001], + "to": [12.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.5, 2, 11.001], + "to": [6.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 11.001], + "to": [13.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [6, 2, 9.501], + "to": [10, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-1, 0, 5.5]}, + "faces": { + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 10.001], + "to": [4.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [11.5, 2, 10.001], + "to": [14.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 9.001], + "to": [3.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [12.5, 2, 9.001], + "to": [14.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 11.001], + "to": [9.5, 2.25, 13.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 9.5]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [3.5, 2, 7.001], + "to": [12.5, 2.25, 9.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.001, 2, 7], + "to": [3.491, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [12.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/blank_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/blank_z.json new file mode 100644 index 00000000..3a75e95c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/blank_z.json @@ -0,0 +1,268 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [10.999, 2, 3.5], + "to": [11.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 9, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [11.999, 2, 4.5], + "to": [12.999, 2.25, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 7, 0.5], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [12.999, 2, 7], + "to": [15.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [8.999, 2, 2.5], + "to": [10.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [8.999, 2, 9.5], + "to": [10.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.999, 2, 3.5], + "to": [3.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.999, 2, 9.5], + "to": [3.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.999, 2, 2.5], + "to": [4.999, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.999, 2, 9.5], + "to": [4.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [4.999, 2, 6], + "to": [6.499, 2.25, 10], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [4.999, 2, 1.5], + "to": [5.999, 2.25, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [4.999, 2, 11.5], + "to": [5.999, 2.25, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [5.999, 2, 1.5], + "to": [6.999, 2.25, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [5.999, 2, 12.5], + "to": [6.999, 2.25, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [2.499, 2, 6.5], + "to": [4.999, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.499, 2, 3.5], + "to": [8.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 3.491], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 12.49], + "to": [9, 2.25, 15.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "rotation": 90, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front.json new file mode 100644 index 00000000..d5a5b508 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front.json @@ -0,0 +1,91 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Front1", + "from": [ 7, 2, 0.5 ], + "to": [ 9, 7, 4.5 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, + "west": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } + } + }, + { + "name": "Front2", + "from": [ 6, 2, 1.5 ], + "to": [ 10, 7, 3.5 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, + "south": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } + } + }, + { + "name": "TopWire", + "from": [ 7.5, 2, 3.5 ], + "to": [ 8.5, 2.5, 5.5 ], + "faces": { + "east": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, + "west": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, + "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 2 ] } + } + }, + { + "name": "AcrossWire", + "from": [ 3.5, 2, 5.5 ], + "to": [ 12.5, 2.5, 6.5 ], + "faces": { + "north": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, + "east": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, + "south": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, + "west": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, + "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 1 ] } + } + }, + { + "name": "Torch_Front", + "from": [ 7, 2, 1.5 ], + "to": [ 9, 6, 3.5 ], + "faces": { + "up": { "texture": "#torch_front", "uv": [ 7, 6, 9, 8 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json new file mode 100644 index 00000000..7dbbfba9 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/front", + "textures": { + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json new file mode 100644 index 00000000..393b44d3 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/front_z", + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_on", + "bluestone_front": "bluepower:base/bluestone_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json new file mode 100644 index 00000000..a39729a6 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json @@ -0,0 +1,91 @@ +{ + "ambientocclusion": false, + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_off", + "bluestone_front": "bluepower:base/bluestone_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Front", + "from": [ 12.5, 2, 7 ], + "to": [ 14.5, 6, 9 ], + "faces": { + "up": { "texture": "#torch_front", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } + } + }, + { + "name": "Front1", + "from": [ 11.5, 2, 7 ], + "to": [ 15.5, 7, 9 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, + "south": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } + } + }, + { + "name": "Front2", + "from": [ 12.5, 2, 6 ], + "to": [ 14.5, 7, 10 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, + "west": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } + } + }, + { + "name": "TopWire", + "from": [ 10.5, 2, 7.5 ], + "to": [ 12.5, 2.5, 8.5 ], + "faces": { + "north": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, + "south": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, + "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 2 ], "rotation": 90 } + } + }, + { + "name": "AcrossWire", + "from": [ 9.5, 2, 3.5 ], + "to": [ 10.5, 2.5, 12.5 ], + "faces": { + "north": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, + "east": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, + "south": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, + "west": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, + "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 1 ], "rotation": 90 } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left.json new file mode 100644 index 00000000..a56bedf2 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left.json @@ -0,0 +1,80 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "torch_left": "bluepower:blocks/bluestone_torch_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Left", + "from": [ 4, 2, 7.5 ], + "to": [ 6, 5, 9.5 ], + "faces": { + "up": { "texture": "#torch_left", "uv": [ 7, 6, 9, 8 ] } + } + }, + { + "name": "AcrossWire", + "from": [ 0, 2, 8 ], + "to": [ 4, 2.5, 9 ], + "faces": { + "north": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, + "south": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, + "west": { "texture": "#bluestone_left", "uv": [ 0, 0, 1, 0.5 ] }, + "up": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 1 ] } + } + }, + { + "name": "Left1", + "from": [ 4, 2, 6.5 ], + "to": [ 6, 6, 10.5 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, + "west": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } + } + }, + { + "name": "Left2", + "from": [ 3, 2, 7.5 ], + "to": [ 7, 6, 9.5 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, + "south": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json new file mode 100644 index 00000000..f4012fe4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/left", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on", + "torch_left": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json new file mode 100644 index 00000000..2be3783d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/left_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on", + "torch_left": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json new file mode 100644 index 00000000..9e2f7f0d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json @@ -0,0 +1,80 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off", + "torch_left": "bluepower:blocks/bluestone_torch_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Left", + "from": [ 6.5, 2, 4 ], + "to": [ 8.5, 5, 6 ], + "faces": { + "up": { "texture": "#torch_left", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } + } + }, + { + "name": "AcrossWire", + "from": [ 7, 2, 0 ], + "to": [ 8, 2.5, 4 ], + "faces": { + "north": { "texture": "#bluestone_left", "uv": [ 0, 0, 1, 0.5 ] }, + "east": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, + "west": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, + "up": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 1 ], "rotation": 90 } + } + }, + { + "name": "Left1", + "from": [ 5.5, 2, 4 ], + "to": [ 9.5, 6, 6 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, + "south": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } + } + }, + { + "name": "Left2", + "from": [ 6.5, 2, 3 ], + "to": [ 8.5, 6, 7 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, + "west": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right.json new file mode 100644 index 00000000..a1bf8b2c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right.json @@ -0,0 +1,80 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "torch_right": "bluepower:blocks/bluestone_torch_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Right", + "from": [ 10, 2, 7.5 ], + "to": [ 12, 5, 9.5 ], + "faces": { + "up": { "texture": "#torch_right", "uv": [ 7, 6, 9, 8 ] } + } + }, + { + "name": "AcrossWire", + "from": [ 12, 2, 8 ], + "to": [ 16, 2.5, 9 ], + "faces": { + "north": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, + "east": { "texture": "#bluestone_right", "uv": [ 0, 0, 1, 0.5 ] }, + "south": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, + "up": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 1 ] } + } + }, + { + "name": "Right1", + "from": [ 10, 2, 6.5 ], + "to": [ 12, 6, 10.5 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, + "west": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } + } + }, + { + "name": "Right2", + "from": [ 9, 2, 7.5 ], + "to": [ 13, 6, 9.5 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, + "south": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json new file mode 100644 index 00000000..41184c98 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on", + "torch_right": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json new file mode 100644 index 00000000..dc7aa0b1 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/and_gate/right_z", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on", + "torch_right": "bluepower:blocks/bluestone_torch_off" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json new file mode 100644 index 00000000..51e31ce8 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json @@ -0,0 +1,80 @@ +{ + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "torch_right": "bluepower:blocks/bluestone_torch_on" + }, + "display": { + "gui": { + "rotation": [ 30, 45, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 0.625, 0.625, 0.625 ] + }, + "ground": { + "rotation": [ 0, 0, 0 ], + "translation": [ 0, 3, 0 ], + "scale": [ 0.25, 0.25, 0.25 ] + }, + "fixed": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "head": { + "rotation": [ 0, 180, 0 ], + "translation": [ 0, 0, 0 ], + "scale": [ 1, 1, 1 ] + }, + "firstperson_righthand": { + "rotation": [ 0, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.4, 0.4, 0.4 ] + }, + "thirdperson_righthand": { + "rotation": [ 75, 315, 0 ], + "translation": [ 0, 2.5, 0 ], + "scale": [ 0.375, 0.375, 0.375 ] + } + }, + "elements": [ + { + "name": "Torch_Right", + "from": [ 6.5, 2, 10 ], + "to": [ 8.5, 5, 12 ], + "faces": { + "up": { "texture": "#torch_right", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } + } + }, + { + "name": "AcrossWire", + "from": [ 7, 2, 12 ], + "to": [ 8, 2.5, 16 ], + "faces": { + "east": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, + "south": { "texture": "#bluestone_right", "uv": [ 0, 0, 1, 0.5 ] }, + "west": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, + "up": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 1 ], "rotation": 90 } + } + }, + { + "name": "Right1", + "from": [ 5.5, 2, 10 ], + "to": [ 9.5, 6, 12 ], + "shade": false, + "faces": { + "north": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, + "south": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } + } + }, + { + "name": "Right2", + "from": [ 6.5, 2, 9 ], + "to": [ 8.5, 6, 13 ], + "shade": false, + "faces": { + "east": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, + "west": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } + } + } + ] +} \ No newline at end of file From d8d08a5c2ea99c4fb4976441744d5317bd39e60d Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Fri, 20 Feb 2026 19:32:04 -0500 Subject: [PATCH 12/25] added xor and xnor gates still need to do block models for xnor gates and item models for both --- .../block/gates/BlockGateBase.java | 2 +- .../block/gates/BlockGateXor.java | 37 +++ .../java/com/bluepowermod/init/BPBlocks.java | 5 + .../com/bluepowermod/init/BPCreativeTabs.java | 2 + .../bluepower/blockstates/gate_xor.json | 252 ++++++++++++++++++ .../bluepower/models/block/xor_gate/back.json | 193 +++++++------- .../models/block/xor_gate/back_on.json | 4 +- .../models/block/xor_gate/back_on_z.json | 4 +- .../models/block/xor_gate/back_z.json | 193 +++++++------- .../models/block/xor_gate/front.json | 174 ++++++------ .../models/block/xor_gate/front_on.json | 5 +- .../models/block/xor_gate/front_on_z.json | 5 +- .../models/block/xor_gate/front_z.json | 174 ++++++------ .../bluepower/models/block/xor_gate/left.json | 138 +++++----- .../models/block/xor_gate/left_on.json | 5 +- .../models/block/xor_gate/left_on_z.json | 5 +- .../models/block/xor_gate/left_torch.json | 41 +++ .../models/block/xor_gate/left_torch_on.json | 6 + .../block/xor_gate/left_torch_on_z.json | 6 + .../models/block/xor_gate/left_torch_z.json | 41 +++ .../models/block/xor_gate/left_z.json | 138 +++++----- .../models/block/xor_gate/right.json | 138 +++++----- .../models/block/xor_gate/right_on.json | 5 +- .../models/block/xor_gate/right_on_z.json | 5 +- .../models/block/xor_gate/right_torch.json | 41 +++ .../models/block/xor_gate/right_torch_on.json | 6 + .../block/xor_gate/right_torch_on_z.json | 6 + .../models/block/xor_gate/right_torch_z.json | 41 +++ .../models/block/xor_gate/right_z.json | 138 +++++----- 29 files changed, 1093 insertions(+), 717 deletions(-) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateXor.java create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_xor.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_torch.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_torch.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_z.json diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java index 16f230b0..36b68d8d 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java @@ -153,7 +153,7 @@ public int getDirectSignal(BlockState blockState, BlockGetter blockAccess, Block return 0; } - private Side fromDirection(Direction direction, int rotation, Direction[] array){ + protected Side fromDirection(Direction direction, int rotation, Direction[] array){ Direction sideLeft = array[rotation == 3 ? 0 : rotation + 1]; Direction sideRight = sideLeft.getOpposite(); Direction sideBack = array[rotation]; diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java b/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java new file mode 100644 index 00000000..fce8619d --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java @@ -0,0 +1,37 @@ +package com.bluepowermod.block.gates; + +import com.bluepowermod.helper.DirectionHelper; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; +import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.block.RedStoneWireBlock; +import net.minecraft.world.level.block.state.BlockState; +import org.jetbrains.annotations.Nullable; + +import java.util.HashMap; +import java.util.Map; + +public class BlockGateXor extends BlockGateAnd{ + public BlockGateXor(boolean inverted) { + super(inverted); + } + + @Override + public Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos){ + Map map = super.getSidePower(worldIn, state, pos); + boolean powered_back = map.get(Side.LEFT) == 0 && map.get(Side.RIGHT) == 0; + map.put(Side.BACK, (byte) (powered_back ? 16 : 0)); + return map; + } + + @Override + public byte computeRedstone(Side side, byte back, byte front, byte left, byte right) { + boolean out = (left > 0 && right == 0) || (left == 0 && right > 0); + return (byte) (out != inverted ? 16 : 0); + } + + @Override + public boolean canConnectRedstone(BlockState state, BlockGetter world, BlockPos pos, @Nullable Direction side) { + return super.canConnectRedstone(state, world, pos, side) && side != null && fromDirection(side.getOpposite(), state.getValue(ROTATION), DirectionHelper.ArrayFromDirection(state.getValue(FACING))) != Side.BACK; + } +} diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 3b44ec4b..bcc2cb43 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -24,6 +24,7 @@ import com.bluepowermod.block.gates.BlockGateBuffer; import com.bluepowermod.block.gates.BlockGateNot; import com.bluepowermod.block.gates.BlockGateOr; +import com.bluepowermod.block.gates.BlockGateXor; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; import com.bluepowermod.block.lighting.BlockLampSurface; @@ -279,6 +280,8 @@ public class BPBlocks { public static final RegistryObject blockGateNAND = BLOCKS.register("gate_nand",() -> new BlockGateAnd(true)); public static final RegistryObject blockGateNOR = BLOCKS.register("gate_nor", () -> new BlockGateOr(true)); public static final RegistryObject blockGateBUFFER = BLOCKS.register("gate_buffer", BlockGateBuffer::new); + public static final RegistryObject blockGateXOR = BLOCKS.register("gate_xor", () -> new BlockGateXor(false)); + public static final RegistryObject blockGateXNOR = BLOCKS.register("gate_xnor", () -> new BlockGateXor(true)); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); @@ -288,6 +291,8 @@ public class BPBlocks { BPItems.ITEMS.register(blockGateNOR.getKey().location().getPath(), () -> new BlockItem(blockGateNOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockNullCell.getKey().location().getPath(), () -> new BlockItem(blockNullCell.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateBUFFER.getKey().location().getPath(), () -> new BlockItem(blockGateBUFFER.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateXOR.getKey().location().getPath(), () -> new BlockItem(blockGateXOR.get(), new Item.Properties())); + BPItems.ITEMS.register(blockGateXNOR.getKey().location().getPath(), () -> new BlockItem(blockGateXNOR.get(), new Item.Properties())); } public static final RegistryObject blockRedAlloyWire = BLOCKS.register(RedwireType.RED_ALLOY.getName() + "_wire", () -> new BlockAlloyWire(RedwireType.RED_ALLOY.getName()).setWIP(true)); diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index 6b8b7686..9891b134 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -68,6 +68,8 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.accept(BPBlocks.blockGateNAND.get()); event.accept(BPBlocks.blockGateNOR.get()); event.accept(BPBlocks.blockGateBUFFER.get()); + event.accept(BPBlocks.blockGateXOR.get()); + event.accept(BPBlocks.blockGateXNOR.get()); event.accept(BPBlocks.blockNullCell.get()); }else if(event.getTab() == lighting.get()){ event.acceptAll(BPBlocks.allLamps.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); diff --git a/src/main/resources/assets/bluepower/blockstates/gate_xor.json b/src/main/resources/assets/bluepower/blockstates/gate_xor.json new file mode 100644 index 00000000..d49598d3 --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_xor.json @@ -0,0 +1,252 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right"}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch_on"}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch"}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch_on"}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch"}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch"}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch"}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch"}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right","y":90}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch_on", "y": 90}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch_on", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 90}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 90}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","y":180}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch_on", "y": 180}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch_on", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 180}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 180}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right","y":270}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch_on", "y": 270}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch_on", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 270}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 270}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back.json index 087a1ebf..d4d45e6c 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/back.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back.json @@ -1,104 +1,93 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_back": "bluepower:base/bluestone_off", - "torch_middle": "bluepower:blocks/bluestone_torch_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Middle", - "from": [ 7, 2, 7.5 ], - "to": [ 9, 5, 9.5 ], - "faces": { - "up": { "texture": "#torch_middle", "uv": [ 7, 6, 9, 8 ] } - } - }, - { - "name": "TopWire", - "from": [ 7.5, 2, 13 ], - "to": [ 8.5, 2.5, 16 ], - "faces": { - "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, - "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, - "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 3 ] } - } - }, - { - "name": "TopWire", - "from": [ 6.5, 2, 11 ], - "to": [ 7.5, 2.5, 13 ], - "faces": { - "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, - "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, - "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ] } - } - }, - { - "name": "TopWire", - "from": [ 7.5, 2, 9.5 ], - "to": [ 8.5, 2.5, 11 ], - "faces": { - "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, - "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, - "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ] } - } - }, - { - "name": "Middle1", - "from": [ 7, 2, 6.5 ], - "to": [ 9, 6, 10.5 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, - "west": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } - } - }, - { - "name": "Middle2", - "from": [ 6, 2, 7.5 ], - "to": [ 10, 6, 9.5 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, - "south": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off", + "bluestone_back": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "Torch_Middle", + "from": [7, 2, 11], + "to": [9, 5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_back"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 10], + "to": [9, 6, 14], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 11], + "to": [10, 6, 13], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 9.5], + "to": [9.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [5.5, 2, 7.5], + "to": [7.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [8.5, 2, 7.5], + "to": [10.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 8.5], + "to": [8.5, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_back"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json index 3df85100..6f50e240 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on.json @@ -1,7 +1,7 @@ { - "parent": "bluepower:block/and_gate/back", + "parent": "bluepower:block/xor_gate/back", "textures": { "bluestone_back": "bluepower:base/bluestone_on", - "torch_middle": "bluepower:blocks/bluestone_torch_off" + "torch_back": "bluepower:blocks/bluestone_torch_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json index c49bfc03..357329d1 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back_on_z.json @@ -1,7 +1,7 @@ { - "parent": "bluepower:block/and_gate/back_z", + "parent": "bluepower:block/xor_gate/back_z", "textures": { "bluestone_back": "bluepower:base/bluestone_on", - "torch_middle": "bluepower:blocks/bluestone_torch_off" + "torch_back": "bluepower:blocks/bluestone_torch_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json index ca4f87af..7806af30 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/back_z.json @@ -1,104 +1,93 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_back": "bluepower:base/bluestone_off", - "torch_middle": "bluepower:blocks/bluestone_torch_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Middle", - "from": [ 6.5, 2, 7 ], - "to": [ 8.5, 5, 9 ], - "faces": { - "up": { "texture": "#torch_middle", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } - } - }, - { - "name": "TopWire", - "from": [ 0, 2, 7.5 ], - "to": [ 3, 2.5, 8.5 ], - "faces": { - "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, - "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 3, 0.5 ] }, - "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 3 ], "rotation": 90 } - } - }, - { - "name": "TopWire", - "from": [ 3, 2, 6.5 ], - "to": [ 5, 2.5, 7.5 ], - "faces": { - "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, - "east": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 2, 0.5 ] }, - "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ], "rotation": 90 } - } - }, - { - "name": "TopWire", - "from": [ 5, 2, 7.5 ], - "to": [ 6.5, 2.5, 8.5 ], - "faces": { - "north": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, - "south": { "texture": "#bluestone_back", "uv": [ 0, 0, 1.5, 0.5 ] }, - "west": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 0.5 ] }, - "up": { "texture": "#bluestone_back", "uv": [ 0, 0, 1, 2 ], "rotation": 90 } - } - }, - { - "name": "Middle1", - "from": [ 5.5, 2, 7 ], - "to": [ 9.5, 6, 9 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, - "south": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } - } - }, - { - "name": "Middle2", - "from": [ 6.5, 2, 6 ], - "to": [ 8.5, 6, 10 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] }, - "west": { "texture": "#torch_middle", "uv": [ 6, 5, 10, 9 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off", + "bluestone_back": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "Torch_Middle", + "from": [3, 2, 7], + "to": [5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_back"} + } + }, + { + "name": "Middle1", + "from": [2, 2, 7], + "to": [6, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Middle2", + "from": [3, 2, 6], + "to": [5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "AcrossWire", + "from": [5.5, 2, 6.5], + "to": [6.5, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 5.5], + "to": [8.5, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 8.5], + "to": [8.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#bluestone_back"} + } + }, + { + "name": "TopWire", + "from": [6.5, 2, 7.5], + "to": [7.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_back"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front.json index d5a5b508..06dee136 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/front.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front.json @@ -1,91 +1,87 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_front": "bluepower:base/bluestone_on", - "torch_front": "bluepower:blocks/bluestone_torch_off" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Front1", - "from": [ 7, 2, 0.5 ], - "to": [ 9, 7, 4.5 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, - "west": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } - } - }, - { - "name": "Front2", - "from": [ 6, 2, 1.5 ], - "to": [ 10, 7, 3.5 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, - "south": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } - } - }, - { - "name": "TopWire", - "from": [ 7.5, 2, 3.5 ], - "to": [ 8.5, 2.5, 5.5 ], - "faces": { - "east": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, - "west": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, - "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 2 ] } - } - }, - { - "name": "AcrossWire", - "from": [ 3.5, 2, 5.5 ], - "to": [ 12.5, 2.5, 6.5 ], - "faces": { - "north": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, - "east": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, - "south": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, - "west": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, - "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 1 ] } - } - }, - { - "name": "Torch_Front", - "from": [ 7, 2, 1.5 ], - "to": [ 9, 6, 3.5 ], - "faces": { - "up": { "texture": "#torch_front", "uv": [ 7, 6, 9, 8 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_front": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "TopWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -3.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 3.5, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 3.5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 3.5], "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 4.5], + "to": [5, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 4.5], + "to": [12, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [5, 2, 3.5], + "to": [11, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, -2]}, + "faces": { + "north": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [3, 2, 5.5], + "to": [6, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-0.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 5.5], + "to": [13, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [6.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json index 7dbbfba9..8714454f 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on.json @@ -1,7 +1,6 @@ { - "parent": "bluepower:block/and_gate/front", + "parent": "bluepower:block/xor_gate/front", "textures": { - "bluestone_front": "bluepower:base/bluestone_off", - "torch_front": "bluepower:blocks/bluestone_torch_on" + "bluestone_front": "bluepower:base/bluestone_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json index 393b44d3..f22883b3 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front_on_z.json @@ -1,7 +1,6 @@ { - "parent": "bluepower:block/and_gate/front_z", + "parent": "bluepower:block/xor_gate/front_z", "textures": { - "torch_front": "bluepower:blocks/bluestone_torch_on", - "bluestone_front": "bluepower:base/bluestone_off" + "bluestone_front": "bluepower:base/bluestone_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json index a39729a6..7ff2839d 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/front_z.json @@ -1,91 +1,87 @@ { - "ambientocclusion": false, - "textures": { - "torch_front": "bluepower:blocks/bluestone_torch_off", - "bluestone_front": "bluepower:base/bluestone_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Front", - "from": [ 12.5, 2, 7 ], - "to": [ 14.5, 6, 9 ], - "faces": { - "up": { "texture": "#torch_front", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } - } - }, - { - "name": "Front1", - "from": [ 11.5, 2, 7 ], - "to": [ 15.5, 7, 9 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, - "south": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } - } - }, - { - "name": "Front2", - "from": [ 12.5, 2, 6 ], - "to": [ 14.5, 7, 10 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] }, - "west": { "texture": "#torch_front", "uv": [ 6, 5, 10, 10 ] } - } - }, - { - "name": "TopWire", - "from": [ 10.5, 2, 7.5 ], - "to": [ 12.5, 2.5, 8.5 ], - "faces": { - "north": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, - "south": { "texture": "#bluestone_front", "uv": [ 0, 0, 2, 0.5 ] }, - "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 2 ], "rotation": 90 } - } - }, - { - "name": "AcrossWire", - "from": [ 9.5, 2, 3.5 ], - "to": [ 10.5, 2.5, 12.5 ], - "faces": { - "north": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, - "east": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, - "south": { "texture": "#bluestone_front", "uv": [ 0, 0, 1, 0.5 ] }, - "west": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 0.5 ] }, - "up": { "texture": "#bluestone_front", "uv": [ 0, 0, 9, 1 ], "rotation": 90 } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_front": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "TopWire", + "from": [12.5, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3.5, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 3.5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 3.5], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [10.5, 2, 4], + "to": [11.5, 2.5, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [10.5, 2, 11], + "to": [11.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [11.5, 2, 5], + "to": [12.5, 2.5, 11], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [9.5, 2, 3], + "to": [10.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [9.5, 2, 10], + "to": [10.5, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left.json index a56bedf2..f40120f3 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/left.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left.json @@ -1,80 +1,62 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_left": "bluepower:base/bluestone_off", - "torch_left": "bluepower:blocks/bluestone_torch_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Left", - "from": [ 4, 2, 7.5 ], - "to": [ 6, 5, 9.5 ], - "faces": { - "up": { "texture": "#torch_left", "uv": [ 7, 6, 9, 8 ] } - } - }, - { - "name": "AcrossWire", - "from": [ 0, 2, 8 ], - "to": [ 4, 2.5, 9 ], - "faces": { - "north": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, - "south": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, - "west": { "texture": "#bluestone_left", "uv": [ 0, 0, 1, 0.5 ] }, - "up": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 1 ] } - } - }, - { - "name": "Left1", - "from": [ 4, 2, 6.5 ], - "to": [ 6, 6, 10.5 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, - "west": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } - } - }, - { - "name": "Left2", - "from": [ 3, 2, 7.5 ], - "to": [ 7, 6, 9.5 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, - "south": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [4, 2, 11.5], + "to": [7, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "AcrossWire", + "from": [0, 2, 7.5], + "to": [3.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [3, 2, 10.5], + "to": [4, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [2, 2, 8.5], + "to": [3, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_left"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json index f4012fe4..56c674ed 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on.json @@ -1,7 +1,6 @@ { - "parent": "bluepower:block/and_gate/left", + "parent": "bluepower:block/xor_gate/left", "textures": { - "bluestone_left": "bluepower:base/bluestone_on", - "torch_left": "bluepower:blocks/bluestone_torch_off" + "bluestone_left": "bluepower:base/bluestone_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json index 2be3783d..2a969cfb 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_on_z.json @@ -1,7 +1,6 @@ { - "parent": "bluepower:block/and_gate/left_z", + "parent": "bluepower:block/xor_gate/left_z", "textures": { - "bluestone_left": "bluepower:base/bluestone_on", - "torch_left": "bluepower:blocks/bluestone_torch_off" + "bluestone_left": "bluepower:base/bluestone_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch.json new file mode 100644 index 00000000..a98b701c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Left", + "from": [3.5, 2, 7], + "to": [5.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_left"} + } + }, + { + "name": "Left1", + "from": [3.5, 2, 6], + "to": [5.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + }, + { + "name": "Left2", + "from": [2.5, 2, 7], + "to": [6.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on.json new file mode 100644 index 00000000..dbd9444a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xor_gate/left_torch", + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on_z.json new file mode 100644 index 00000000..956b93d5 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xor_gate/left_torch_z", + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_z.json new file mode 100644 index 00000000..3c1bce3c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_torch_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Left", + "from": [7, 2, 3.5], + "to": [9, 5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_left"} + } + }, + { + "name": "Left1", + "from": [6, 2, 3.5], + "to": [10, 6, 5.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + }, + { + "name": "Left2", + "from": [7, 2, 2.5], + "to": [9, 6, 6.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json index 9e2f7f0d..7622fc3a 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/left_z.json @@ -1,80 +1,62 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_left": "bluepower:base/bluestone_off", - "torch_left": "bluepower:blocks/bluestone_torch_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Left", - "from": [ 6.5, 2, 4 ], - "to": [ 8.5, 5, 6 ], - "faces": { - "up": { "texture": "#torch_left", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } - } - }, - { - "name": "AcrossWire", - "from": [ 7, 2, 0 ], - "to": [ 8, 2.5, 4 ], - "faces": { - "north": { "texture": "#bluestone_left", "uv": [ 0, 0, 1, 0.5 ] }, - "east": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, - "west": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 0.5 ] }, - "up": { "texture": "#bluestone_left", "uv": [ 0, 0, 4, 1 ], "rotation": 90 } - } - }, - { - "name": "Left1", - "from": [ 5.5, 2, 4 ], - "to": [ 9.5, 6, 6 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, - "south": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } - } - }, - { - "name": "Left2", - "from": [ 6.5, 2, 3 ], - "to": [ 8.5, 6, 7 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] }, - "west": { "texture": "#torch_left", "uv": [ 6, 5, 10, 9 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [3.5, 2, 4], + "to": [4.5, 2.5, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [4.5, 2, 3], + "to": [5.5, 2.5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [5.5, 2, 2], + "to": [7.5, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 2], "rotation": 90, "texture": "#bluestone_left"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right.json index a1bf8b2c..e90f05f4 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/right.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right.json @@ -1,80 +1,62 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_right": "bluepower:base/bluestone_off", - "torch_right": "bluepower:blocks/bluestone_torch_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Right", - "from": [ 10, 2, 7.5 ], - "to": [ 12, 5, 9.5 ], - "faces": { - "up": { "texture": "#torch_right", "uv": [ 7, 6, 9, 8 ] } - } - }, - { - "name": "AcrossWire", - "from": [ 12, 2, 8 ], - "to": [ 16, 2.5, 9 ], - "faces": { - "north": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, - "east": { "texture": "#bluestone_right", "uv": [ 0, 0, 1, 0.5 ] }, - "south": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, - "up": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 1 ] } - } - }, - { - "name": "Right1", - "from": [ 10, 2, 6.5 ], - "to": [ 12, 6, 10.5 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, - "west": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } - } - }, - { - "name": "Right2", - "from": [ 9, 2, 7.5 ], - "to": [ 13, 6, 9.5 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, - "south": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_off": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [9, 2, 11.5], + "to": [12, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_right"} + } + }, + { + "name": "AcrossWire", + "from": [12.5, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [12, 2, 10.5], + "to": [13, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [13, 2, 8.5], + "to": [14, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_right"} + } + } + ] } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json index 41184c98..31d2b841 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on.json @@ -1,7 +1,6 @@ { - "parent": "bluepower:block/and_gate/right", + "parent": "bluepower:block/xor_gate/right", "textures": { - "bluestone_right": "bluepower:base/bluestone_on", - "torch_right": "bluepower:blocks/bluestone_torch_off" + "bluestone_right": "bluepower:base/bluestone_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json index dc7aa0b1..8fe6c962 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_on_z.json @@ -1,7 +1,6 @@ { - "parent": "bluepower:block/and_gate/right_z", + "parent": "bluepower:block/xor_gate/right_z", "textures": { - "bluestone_right": "bluepower:base/bluestone_on", - "torch_right": "bluepower:blocks/bluestone_torch_off" + "bluestone_right": "bluepower:base/bluestone_on" } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch.json new file mode 100644 index 00000000..26913c48 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Right", + "from": [10.5, 2, 7], + "to": [12.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_right"} + } + }, + { + "name": "Right1", + "from": [10.5, 2, 6], + "to": [12.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Right2", + "from": [9.5, 2, 7], + "to": [13.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on.json new file mode 100644 index 00000000..e56d2072 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xor_gate/right_torch", + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on_z.json new file mode 100644 index 00000000..861665e1 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xor_gate/right_torch_z", + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_z.json new file mode 100644 index 00000000..39ac3c3e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_torch_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Right", + "from": [7, 2, 10.5], + "to": [9, 5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_right"} + } + }, + { + "name": "Right1", + "from": [6, 2, 10.5], + "to": [10, 6, 12.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Right2", + "from": [7, 2, 9.5], + "to": [9, 6, 13.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json index 51e31ce8..00ebd68d 100644 --- a/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/right_z.json @@ -1,80 +1,62 @@ { - "ambientocclusion": false, - "textures": { - "bluestone_right": "bluepower:base/bluestone_off", - "torch_right": "bluepower:blocks/bluestone_torch_on" - }, - "display": { - "gui": { - "rotation": [ 30, 45, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 0.625, 0.625, 0.625 ] - }, - "ground": { - "rotation": [ 0, 0, 0 ], - "translation": [ 0, 3, 0 ], - "scale": [ 0.25, 0.25, 0.25 ] - }, - "fixed": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "head": { - "rotation": [ 0, 180, 0 ], - "translation": [ 0, 0, 0 ], - "scale": [ 1, 1, 1 ] - }, - "firstperson_righthand": { - "rotation": [ 0, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.4, 0.4, 0.4 ] - }, - "thirdperson_righthand": { - "rotation": [ 75, 315, 0 ], - "translation": [ 0, 2.5, 0 ], - "scale": [ 0.375, 0.375, 0.375 ] - } - }, - "elements": [ - { - "name": "Torch_Right", - "from": [ 6.5, 2, 10 ], - "to": [ 8.5, 5, 12 ], - "faces": { - "up": { "texture": "#torch_right", "uv": [ 7, 6, 9, 8 ], "rotation": 90 } - } - }, - { - "name": "AcrossWire", - "from": [ 7, 2, 12 ], - "to": [ 8, 2.5, 16 ], - "faces": { - "east": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, - "south": { "texture": "#bluestone_right", "uv": [ 0, 0, 1, 0.5 ] }, - "west": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 0.5 ] }, - "up": { "texture": "#bluestone_right", "uv": [ 0, 0, 4, 1 ], "rotation": 90 } - } - }, - { - "name": "Right1", - "from": [ 5.5, 2, 10 ], - "to": [ 9.5, 6, 12 ], - "shade": false, - "faces": { - "north": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, - "south": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } - } - }, - { - "name": "Right2", - "from": [ 6.5, 2, 9 ], - "to": [ 8.5, 6, 13 ], - "shade": false, - "faces": { - "east": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] }, - "west": { "texture": "#torch_right", "uv": [ 6, 5, 10, 9 ] } - } - } - ] + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [3.5, 2, 9], + "to": [4.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_right"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 12.5], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [4.5, 2, 12], + "to": [5.5, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [5.5, 2, 13], + "to": [7.5, 2.5, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 2], "rotation": 90, "texture": "#bluestone_right"} + } + } + ] } \ No newline at end of file From 7f39079c515c95c87a857240ad60870902eeaebf Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sat, 21 Feb 2026 18:11:17 -0500 Subject: [PATCH 13/25] added block models for xnor gate --- .../bluepower/blockstates/gate_xnor.json | 252 ++++++++++++++++++ .../models/block/xnor_gate/back.json | 93 +++++++ .../models/block/xnor_gate/back_on.json | 7 + .../models/block/xnor_gate/back_on_z.json | 7 + .../models/block/xnor_gate/back_z.json | 93 +++++++ .../models/block/xnor_gate/front.json | 119 +++++++++ .../models/block/xnor_gate/front_on.json | 7 + .../models/block/xnor_gate/front_on_z.json | 7 + .../models/block/xnor_gate/front_z.json | 119 +++++++++ .../models/block/xnor_gate/left.json | 62 +++++ .../models/block/xnor_gate/left_on.json | 6 + .../models/block/xnor_gate/left_on_z.json | 6 + .../models/block/xnor_gate/left_torch.json | 41 +++ .../models/block/xnor_gate/left_torch_on.json | 6 + .../block/xnor_gate/left_torch_on_z.json | 6 + .../models/block/xnor_gate/left_torch_z.json | 41 +++ .../models/block/xnor_gate/left_z.json | 62 +++++ .../models/block/xnor_gate/right.json | 62 +++++ .../models/block/xnor_gate/right_on.json | 6 + .../models/block/xnor_gate/right_on_z.json | 6 + .../models/block/xnor_gate/right_torch.json | 41 +++ .../block/xnor_gate/right_torch_on.json | 6 + .../block/xnor_gate/right_torch_on_z.json | 6 + .../models/block/xnor_gate/right_torch_z.json | 41 +++ .../models/block/xnor_gate/right_z.json | 62 +++++ 25 files changed, 1164 insertions(+) create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_xnor.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/back_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/right_z.json diff --git a/src/main/resources/assets/bluepower/blockstates/gate_xnor.json b/src/main/resources/assets/bluepower/blockstates/gate_xnor.json new file mode 100644 index 00000000..26534eae --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_xnor.json @@ -0,0 +1,252 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right"}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on"}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch"}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on"}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch"}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch"}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch"}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch"}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right","y":90}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on", "y": 90}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 90}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 90}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 90}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","y":180}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on", "y": 180}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 180}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 180}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 180}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right","y":270}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on", "y": 270}}, + {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 270}}, + {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 270}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 270}}, + {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/back.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/back.json new file mode 100644 index 00000000..d4d45e6c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/back.json @@ -0,0 +1,93 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off", + "bluestone_back": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "Torch_Middle", + "from": [7, 2, 11], + "to": [9, 5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_back"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 10], + "to": [9, 6, 14], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 11], + "to": [10, 6, 13], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 9.5], + "to": [9.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [5.5, 2, 7.5], + "to": [7.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [8.5, 2, 7.5], + "to": [10.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_back"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 8.5], + "to": [8.5, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_back"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/back_on.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/back_on.json new file mode 100644 index 00000000..7337f773 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/back_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/xnor_gate/back", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on", + "torch_back": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/back_on_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/back_on_z.json new file mode 100644 index 00000000..739817a6 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/back_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/xnor_gate/back_z", + "textures": { + "bluestone_back": "bluepower:base/bluestone_on", + "torch_back": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/back_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/back_z.json new file mode 100644 index 00000000..7806af30 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/back_z.json @@ -0,0 +1,93 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off", + "bluestone_back": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "Torch_Middle", + "from": [3, 2, 7], + "to": [5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_back"} + } + }, + { + "name": "Middle1", + "from": [2, 2, 7], + "to": [6, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Middle2", + "from": [3, 2, 6], + "to": [5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "AcrossWire", + "from": [5.5, 2, 6.5], + "to": [6.5, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 5.5], + "to": [8.5, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#bluestone_back"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 8.5], + "to": [8.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#bluestone_back"} + } + }, + { + "name": "TopWire", + "from": [6.5, 2, 7.5], + "to": [7.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_back"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_back"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_back"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/front.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/front.json new file mode 100644 index 00000000..055458a9 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/front.json @@ -0,0 +1,119 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "TopWire", + "from": [7.5, 2, 3], + "to": [8.5, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 0.5, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 0.5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 4.5], + "to": [5, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 4.5], + "to": [12, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [5, 2, 3.5], + "to": [11, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, -2]}, + "faces": { + "north": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [3, 2, 5.5], + "to": [6, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-0.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 5.5], + "to": [13, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [6.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 1], + "to": [9, 5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -6.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [7, 2, 0], + "to": [9, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -6.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [6, 2, 1], + "to": [10, 6, 3], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -6.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/front_on.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/front_on.json new file mode 100644 index 00000000..bbc88dca --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/front_on.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/xnor_gate/front", + "textures": { + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/front_on_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/front_on_z.json new file mode 100644 index 00000000..3ee357ce --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/front_on_z.json @@ -0,0 +1,7 @@ +{ + "parent": "bluepower:block/xnor_gate/front_z", + "textures": { + "bluestone_front": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/front_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/front_z.json new file mode 100644 index 00000000..4857cf5d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/front_z.json @@ -0,0 +1,119 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_front": "bluepower:base/bluestone_on", + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "TopWire", + "from": [12.5, 2, 7.5], + "to": [13, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 0.5, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 0.5, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 0.5], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [10.5, 2, 4], + "to": [11.5, 2.5, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "TopWire", + "from": [10.5, 2, 11], + "to": [11.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [11.5, 2, 5], + "to": [12.5, 2.5, 11], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 6, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [9.5, 2, 3], + "to": [10.5, 2.5, 6], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "AcrossWire", + "from": [9.5, 2, 10], + "to": [10.5, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_front"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_front"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_front"} + } + }, + { + "name": "Torch_Front", + "from": [13, 2, 7], + "to": [15, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [12, 2, 7], + "to": [16, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [13, 2, 6], + "to": [15, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left.json new file mode 100644 index 00000000..f40120f3 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left.json @@ -0,0 +1,62 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [4, 2, 11.5], + "to": [7, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "AcrossWire", + "from": [0, 2, 7.5], + "to": [3.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [3, 2, 10.5], + "to": [4, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [2, 2, 8.5], + "to": [3, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_on.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_on.json new file mode 100644 index 00000000..f57bd6ab --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/left", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_on_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_on_z.json new file mode 100644 index 00000000..9c307a2f --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/left_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch.json new file mode 100644 index 00000000..a98b701c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Left", + "from": [3.5, 2, 7], + "to": [5.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_left"} + } + }, + { + "name": "Left1", + "from": [3.5, 2, 6], + "to": [5.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + }, + { + "name": "Left2", + "from": [2.5, 2, 7], + "to": [6.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on.json new file mode 100644 index 00000000..1f9ed91b --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/left_torch", + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on_z.json new file mode 100644 index 00000000..ecff5d78 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/left_torch_z", + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_z.json new file mode 100644 index 00000000..3c1bce3c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_torch_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_left": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Left", + "from": [7, 2, 3.5], + "to": [9, 5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_left"} + } + }, + { + "name": "Left1", + "from": [6, 2, 3.5], + "to": [10, 6, 5.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + }, + { + "name": "Left2", + "from": [7, 2, 2.5], + "to": [9, 6, 6.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_left"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/left_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_z.json new file mode 100644 index 00000000..7622fc3a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/left_z.json @@ -0,0 +1,62 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [3.5, 2, 4], + "to": [4.5, 2.5, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [4.5, 2, 3], + "to": [5.5, 2.5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [5.5, 2, 2], + "to": [7.5, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 2], "rotation": 90, "texture": "#bluestone_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right.json new file mode 100644 index 00000000..e90f05f4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right.json @@ -0,0 +1,62 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_off": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [9, 2, 11.5], + "to": [12, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_right"} + } + }, + { + "name": "AcrossWire", + "from": [12.5, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [12, 2, 10.5], + "to": [13, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [13, 2, 8.5], + "to": [14, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_on.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_on.json new file mode 100644 index 00000000..0d59150a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_on_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_on_z.json new file mode 100644 index 00000000..296ca09a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/right_z", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch.json new file mode 100644 index 00000000..26913c48 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Right", + "from": [10.5, 2, 7], + "to": [12.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_right"} + } + }, + { + "name": "Right1", + "from": [10.5, 2, 6], + "to": [12.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Right2", + "from": [9.5, 2, 7], + "to": [13.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on.json new file mode 100644 index 00000000..73f98bea --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/right_torch", + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on_z.json new file mode 100644 index 00000000..a72f7524 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/xnor_gate/right_torch_z", + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_z.json new file mode 100644 index 00000000..39ac3c3e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_torch_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_right": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Right", + "from": [7, 2, 10.5], + "to": [9, 5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_right"} + } + }, + { + "name": "Right1", + "from": [6, 2, 10.5], + "to": [10, 6, 12.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Right2", + "from": [7, 2, 9.5], + "to": [9, 6, 13.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/right_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_z.json new file mode 100644 index 00000000..00ebd68d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/right_z.json @@ -0,0 +1,62 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [3.5, 2, 9], + "to": [4.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_right"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 12.5], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [4.5, 2, 12], + "to": [5.5, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [5.5, 2, 13], + "to": [7.5, 2.5, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 2], "rotation": 90, "texture": "#bluestone_right"} + } + } + ] +} \ No newline at end of file From c3b3ea0d2d447eec4205ee00f9476e06f7adb9fd Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sat, 21 Feb 2026 19:38:59 -0500 Subject: [PATCH 14/25] added full model for xor and xnor gate item models --- .../bluepower/models/block/gate_xnor.json | 684 ++++++++++++++++++ .../bluepower/models/block/gate_xor.json | 654 +++++++++++++++++ .../bluepower/models/item/gate_xnor.json | 3 + .../bluepower/models/item/gate_xor.json | 3 + 4 files changed, 1344 insertions(+) create mode 100644 src/main/resources/assets/bluepower/models/block/gate_xnor.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_xor.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_xnor.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_xor.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_xnor.json b/src/main/resources/assets/bluepower/models/block/gate_xnor.json new file mode 100644 index 00000000..2267f88b --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_xnor.json @@ -0,0 +1,684 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate", + "torch_on": "bluepower:blocks/bluestone_torch_on", + "bluestone_on": "bluepower:base/bluestone_on", + "bluestone_off": "bluepower:base/bluestone_off", + "torch_off": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [3.5, 2, 4.001], + "to": [12.5, 2.25, 5.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 9, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [4.5, 2, 3.001], + "to": [11.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-2.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 7, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 3.001], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -4]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [2.5, 2, 5.001], + "to": [6.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [9.5, 2, 5.001], + "to": [13.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.5, 2, 12.001], + "to": [6.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 12.001], + "to": [12.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.5, 2, 11.001], + "to": [6.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 11.001], + "to": [13.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [6, 2, 9.501], + "to": [10, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-1, 0, 5.5]}, + "faces": { + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 10.001], + "to": [4.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [11.5, 2, 10.001], + "to": [14.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 9.001], + "to": [3.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [12.5, 2, 9.001], + "to": [14.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 11.001], + "to": [9.5, 2.25, 13.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 9.5]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [3.5, 2, 7.001], + "to": [12.5, 2.25, 9.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.001, 2, 7], + "to": [3.491, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [12.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 11], + "to": [9, 5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_on"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 10], + "to": [9, 6, 14], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_on"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_on"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 11], + "to": [10, 6, 13], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_on"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_on"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 9.5], + "to": [9.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "AcrossWire", + "from": [5.5, 2, 7.5], + "to": [7.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "AcrossWire", + "from": [8.5, 2, 7.5], + "to": [10.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 8.5], + "to": [8.5, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 3], + "to": [8.5, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "east": {"uv": [0, 0, 0.5, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 0.5, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 4.5], + "to": [5, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 4.5], + "to": [12, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [5, 2, 3.5], + "to": [11, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, -2]}, + "faces": { + "north": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [3, 2, 5.5], + "to": [6, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-0.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 5.5], + "to": [13, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [6.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 1], + "to": [9, 5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -6.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_on"} + } + }, + { + "name": "Front1", + "from": [7, 2, 0], + "to": [9, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -6.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_on"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_on"} + } + }, + { + "name": "Front2", + "from": [6, 2, 1], + "to": [10, 6, 3], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -6.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_on"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_on"} + } + }, + { + "name": "AcrossWire", + "from": [4, 2, 11.5], + "to": [7, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [0, 2, 7.5], + "to": [3.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [3, 2, 10.5], + "to": [4, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [2, 2, 8.5], + "to": [3, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [9, 2, 11.5], + "to": [12, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [12.5, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [12, 2, 10.5], + "to": [13, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [13, 2, 8.5], + "to": [14, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_off"} + } + }, + { + "name": "Torch_Left", + "from": [3.5, 2, 7], + "to": [5.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_off"} + } + }, + { + "name": "Left1", + "from": [3.5, 2, 6], + "to": [5.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_off"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_off"} + } + }, + { + "name": "Left2", + "from": [2.5, 2, 7], + "to": [6.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_off"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_off"} + } + }, + { + "name": "Torch_Right", + "from": [10.5, 2, 7], + "to": [12.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_off"} + } + }, + { + "name": "Right1", + "from": [10.5, 2, 6], + "to": [12.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_off"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_off"} + } + }, + { + "name": "Right2", + "from": [9.5, 2, 7], + "to": [13.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_off"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_off"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [19, 20, 21, 22, 23, 24, 25] + }, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [26, 27, 28, 29, 30, 31, 32, 33, 34] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [35, 36, 37, 38] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [39, 40, 41, 42] + }, + { + "name": "left_torch", + "origin": [8, 8, 8], + "color": 0, + "children": [43, 44, 45] + }, + { + "name": "right_torch", + "origin": [8, 8, 8], + "color": 0, + "children": [46, 47, 48] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_xor.json b/src/main/resources/assets/bluepower/models/block/gate_xor.json new file mode 100644 index 00000000..e75353bb --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_xor.json @@ -0,0 +1,654 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate", + "torch_on": "bluepower:blocks/bluestone_torch_on", + "bluestone_on": "bluepower:base/bluestone_on", + "bluestone_off": "bluepower:base/bluestone_off", + "torch_right": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [3.5, 2, 4.001], + "to": [12.5, 2.25, 5.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 9, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [4.5, 2, 3.001], + "to": [11.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-2.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 7, 0.5], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [7, 2, 0.001], + "to": [9, 2.25, 3.001], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -4]}, + "faces": { + "north": {"uv": [0, 0, 7, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [2.5, 2, 5.001], + "to": [6.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "TopBase", + "from": [9.5, 2, 5.001], + "to": [13.5, 2.25, 7.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [3.5, 2, 12.001], + "to": [6.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 12.001], + "to": [12.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [2.5, 2, 11.001], + "to": [6.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [9.5, 2, 11.001], + "to": [13.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [6, 2, 9.501], + "to": [10, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-1, 0, 5.5]}, + "faces": { + "east": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 10.001], + "to": [4.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [11.5, 2, 10.001], + "to": [14.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [1.5, 2, 9.001], + "to": [3.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "BackBase", + "from": [12.5, 2, 9.001], + "to": [14.5, 2.25, 10.001], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [6.5, 2, 11.001], + "to": [9.5, 2.25, 13.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 9.5]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [3.5, 2, 7.001], + "to": [12.5, 2.25, 9.501], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 9, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.001, 2, 7], + "to": [3.491, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [12.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 1.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.99, 1], "texture": "#gate"} + } + }, + { + "name": "Torch_Middle", + "from": [7, 2, 11], + "to": [9, 5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_on"} + } + }, + { + "name": "Middle1", + "from": [7, 2, 10], + "to": [9, 6, 14], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_on"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_on"} + } + }, + { + "name": "Middle2", + "from": [6, 2, 11], + "to": [10, 6, 13], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 3.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_on"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_on"} + } + }, + { + "name": "AcrossWire", + "from": [6.5, 2, 9.5], + "to": [9.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 0, 4]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "AcrossWire", + "from": [5.5, 2, 7.5], + "to": [7.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "AcrossWire", + "from": [8.5, 2, 7.5], + "to": [10.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 8.5], + "to": [8.5, 2.5, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_on"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_on"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_on"} + } + }, + { + "name": "TopWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -3.5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 3.5, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 3.5, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 3.5], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 4.5], + "to": [5, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 4.5], + "to": [12, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [5, 2, 3.5], + "to": [11, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, -2]}, + "faces": { + "north": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 6, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 6, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [3, 2, 5.5], + "to": [6, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-0.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [10, 2, 5.5], + "to": [13, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [6.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [4, 2, 11.5], + "to": [7, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [0, 2, 7.5], + "to": [3.5, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [3, 2, 10.5], + "to": [4, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [2, 2, 8.5], + "to": [3, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [9, 2, 11.5], + "to": [12, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "AcrossWire", + "from": [12.5, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [9, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [12, 2, 10.5], + "to": [13, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "TopWire", + "from": [13, 2, 8.5], + "to": [14, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [5.5, 0, 5]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 1, 2], "texture": "#bluestone_off"} + } + }, + { + "name": "Torch_Left", + "from": [3.5, 2, 7], + "to": [5.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_right"} + } + }, + { + "name": "Left1", + "from": [3.5, 2, 6], + "to": [5.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Left2", + "from": [2.5, 2, 7], + "to": [6.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Torch_Right", + "from": [10.5, 2, 7], + "to": [12.5, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_right"} + } + }, + { + "name": "Right1", + "from": [10.5, 2, 6], + "to": [12.5, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + }, + { + "name": "Right2", + "from": [9.5, 2, 7], + "to": [13.5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -0.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_right"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [19, 20, 21, 22, 23, 24, 25] + }, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [26, 27, 28, 29, 30, 31] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [32, 33, 34, 35] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [36, 37, 38, 39] + }, + { + "name": "left_torch", + "origin": [8, 8, 8], + "color": 0, + "children": [40, 41, 42] + }, + { + "name": "right_torch", + "origin": [8, 8, 8], + "color": 0, + "children": [43, 44, 45] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/item/gate_xnor.json b/src/main/resources/assets/bluepower/models/item/gate_xnor.json new file mode 100644 index 00000000..4ffbff01 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_xnor.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_xnor" +} diff --git a/src/main/resources/assets/bluepower/models/item/gate_xor.json b/src/main/resources/assets/bluepower/models/item/gate_xor.json new file mode 100644 index 00000000..0227fe64 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_xor.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_xor" +} From eb41dc42b65c06186ea59a586353add783649b71 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sat, 21 Feb 2026 22:07:01 -0500 Subject: [PATCH 15/25] added rs latch --- .../block/gates/BlockGateAnd.java | 2 +- .../block/gates/BlockGateBase.java | 6 +- .../block/gates/BlockGateNot.java | 2 +- .../block/gates/BlockGateRSLatch.java | 59 ++ .../java/com/bluepowermod/init/BPBlocks.java | 3 + .../com/bluepowermod/init/BPCreativeTabs.java | 1 + .../assets/bluepower/blockstates/gate_rs.json | 220 +++++++ .../bluepower/models/block/gate_rs.json | 578 ++++++++++++++++++ .../bluepower/models/block/rs_latch/back.json | 41 ++ .../models/block/rs_latch/back_on.json | 6 + .../models/block/rs_latch/back_on_z.json | 6 + .../models/block/rs_latch/back_z.json | 41 ++ .../models/block/rs_latch/blank.json | 283 +++++++++ .../models/block/rs_latch/blank_z.json | 285 +++++++++ .../models/block/rs_latch/front.json | 41 ++ .../models/block/rs_latch/front_on.json | 6 + .../models/block/rs_latch/front_on_z.json | 6 + .../models/block/rs_latch/front_z.json | 41 ++ .../bluepower/models/block/rs_latch/left.json | 112 ++++ .../models/block/rs_latch/left_on.json | 6 + .../models/block/rs_latch/left_on_z.json | 6 + .../models/block/rs_latch/left_z.json | 112 ++++ .../models/block/rs_latch/right.json | 112 ++++ .../models/block/rs_latch/right_on.json | 6 + .../models/block/rs_latch/right_on_z.json | 6 + .../models/block/rs_latch/right_z.json | 113 ++++ .../assets/bluepower/models/item/gate_rs.json | 3 + 27 files changed, 2098 insertions(+), 5 deletions(-) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_rs.json create mode 100644 src/main/resources/assets/bluepower/models/block/gate_rs.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/back_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/right_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/right_z.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_rs.json diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java index bc3cc350..2b30354a 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java @@ -18,7 +18,7 @@ public BlockGateAnd(boolean inverted){ } @Override - protected boolean isSideSource(Side side) { + protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blockAccess, BlockPos pos) { return side == Side.FRONT; } diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java index 36b68d8d..bd1bbdc1 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java @@ -136,7 +136,7 @@ public int getSignal(BlockState blockState, BlockGetter blockAccess, BlockPos po Direction[] dirs = DirectionHelper.ArrayFromDirection(blockState.getValue(FACING)); Side side1 = fromDirection(side.getOpposite(), blockState.getValue(ROTATION), dirs); Map map = getSidePower(blockAccess, blockState, pos); - if (isSideSource(side1)){ + if (isSideSource(side1, blockState, blockAccess, pos)){ return map.get(side1); } return 0; @@ -147,7 +147,7 @@ public int getDirectSignal(BlockState blockState, BlockGetter blockAccess, Block Direction[] dirs = DirectionHelper.ArrayFromDirection(blockState.getValue(FACING)); Side side1 = fromDirection(side.getOpposite(), blockState.getValue(ROTATION), dirs); Map map = getSidePower(blockAccess, blockState, pos); - if (isSideSource(side1)){ + if (isSideSource(side1, blockState, blockAccess, pos)){ return map.get(side1); } return 0; @@ -167,7 +167,7 @@ protected Side fromDirection(Direction direction, int rotation, Direction[] arra protected abstract Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos); - protected boolean isSideSource(Side side){ + protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blockAccess, BlockPos pos){ return false; } diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java index 92b97ea0..7870a530 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java @@ -33,7 +33,7 @@ protected byte getOutput(byte back){ } @Override - protected boolean isSideSource(Side side) { + protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blockAccess, BlockPos pos) { return side == Side.FRONT || side == Side.LEFT || side == Side.RIGHT; } } diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java b/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java new file mode 100644 index 00000000..5c2869cc --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java @@ -0,0 +1,59 @@ +package com.bluepowermod.block.gates; + +import com.bluepowermod.helper.DirectionHelper; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; +import net.minecraft.world.item.context.BlockPlaceContext; +import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.block.RedStoneWireBlock; +import net.minecraft.world.level.block.state.BlockState; +import org.jetbrains.annotations.Nullable; + +import java.util.Map; + +public class BlockGateRSLatch extends BlockGateBase{ + @Override + protected Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos) { + Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); + Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; + Direction side_right = side_left.getOpposite(); + BlockPos pos_left = pos.relative(side_left); + BlockPos pos_right = pos.relative(side_right); + BlockState state_left = worldIn.getBlockState(pos_left); + BlockState state_right = worldIn.getBlockState(pos_right); + byte leftIn = (byte) state_left.getSignal(worldIn, pos_left, side_right); + byte rightIn = (byte) state_right.getSignal(worldIn, pos_right, side_left); + if(state_left.getBlock() instanceof RedStoneWireBlock){leftIn = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} + if(state_right.getBlock() instanceof RedStoneWireBlock){rightIn = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} + boolean frontPowered = state.getValue(POWERED_FRONT); + boolean backPowered = state.getValue(POWERED_BACK); + if (!frontPowered && !backPowered ){ + if (rightIn == 0) backPowered = true; + else if (leftIn == 0) frontPowered = true; + } + if (leftIn > 0 && rightIn > 0){ + frontPowered = false; + backPowered = false; + } else if (leftIn > 0 && frontPowered){ + frontPowered = false; + backPowered = true; + } else if (rightIn > 0 && backPowered){ + backPowered = false; + frontPowered = true; + } + return Map.of(Side.FRONT, (byte) (frontPowered ? 16 : 0), + Side.LEFT, (byte)(backPowered || leftIn > 0 ? 16 : 0), + Side.RIGHT, (byte)(frontPowered || rightIn > 0 ? 16 : 0), + Side.BACK, (byte)(backPowered ? 16 : 0)); + } + + @Override + protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blockAccess, BlockPos pos) { + return side == Side.FRONT || side == Side.BACK || (side == Side.LEFT && blockState.getValue(POWERED_BACK) || (side == Side.RIGHT && blockState.getValue(POWERED_FRONT))); + } + + @Override + public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) { + return super.getStateForPlacement(context).setValue(POWERED_FRONT, true).setValue(POWERED_RIGHT, true); + } +} diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index bcc2cb43..26ac2888 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -24,6 +24,7 @@ import com.bluepowermod.block.gates.BlockGateBuffer; import com.bluepowermod.block.gates.BlockGateNot; import com.bluepowermod.block.gates.BlockGateOr; +import com.bluepowermod.block.gates.BlockGateRSLatch; import com.bluepowermod.block.gates.BlockGateXor; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; @@ -282,6 +283,7 @@ public class BPBlocks { public static final RegistryObject blockGateBUFFER = BLOCKS.register("gate_buffer", BlockGateBuffer::new); public static final RegistryObject blockGateXOR = BLOCKS.register("gate_xor", () -> new BlockGateXor(false)); public static final RegistryObject blockGateXNOR = BLOCKS.register("gate_xnor", () -> new BlockGateXor(true)); + public static final RegistryObject blockRSLatch = BLOCKS.register("gate_rs", BlockGateRSLatch::new); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); @@ -293,6 +295,7 @@ public class BPBlocks { BPItems.ITEMS.register(blockGateBUFFER.getKey().location().getPath(), () -> new BlockItem(blockGateBUFFER.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateXOR.getKey().location().getPath(), () -> new BlockItem(blockGateXOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateXNOR.getKey().location().getPath(), () -> new BlockItem(blockGateXNOR.get(), new Item.Properties())); + BPItems.ITEMS.register(blockRSLatch.getKey().location().getPath(), () -> new BlockItem(blockRSLatch.get(), new Item.Properties())); } public static final RegistryObject blockRedAlloyWire = BLOCKS.register(RedwireType.RED_ALLOY.getName() + "_wire", () -> new BlockAlloyWire(RedwireType.RED_ALLOY.getName()).setWIP(true)); diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index 9891b134..0ea72eb9 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -71,6 +71,7 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.accept(BPBlocks.blockGateXOR.get()); event.accept(BPBlocks.blockGateXNOR.get()); event.accept(BPBlocks.blockNullCell.get()); + event.accept(BPBlocks.blockRSLatch.get()); }else if(event.getTab() == lighting.get()){ event.acceptAll(BPBlocks.allLamps.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); }else if(event.getTab() == microblocks.get()){ diff --git a/src/main/resources/assets/bluepower/blockstates/gate_rs.json b/src/main/resources/assets/bluepower/blockstates/gate_rs.json new file mode 100644 index 00000000..abbbcccc --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_rs.json @@ -0,0 +1,220 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/gate_rs.json b/src/main/resources/assets/bluepower/models/block/gate_rs.json new file mode 100644 index 00000000..81c65d23 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_rs.json @@ -0,0 +1,578 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate", + "torch_front": "bluepower:blocks/bluestone_torch_on", + "bluestone_right": "bluepower:base/bluestone_on", + "torch_back": "bluepower:blocks/bluestone_torch_off", + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "FrontTorchBase", + "from": [6.5, 2, 1.5], + "to": [9, 2.25, 4.5], + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "BackTorchBase", + "from": [7, 2, 11.5], + "to": [9.5, 2.25, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 10.3]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.5, 2, 13.001], + "to": [11.5, 2.25, 14.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 9]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.5, 2, 12.001], + "to": [12.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [10.5, 2, 11.001], + "to": [13.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9, 2, 4.001], + "to": [13.5, 2.25, 5.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.5, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9, 2, 1.001], + "to": [11.5, 2.25, 2.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -3]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.5, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9, 2, 2.001], + "to": [12.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 3.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3.5, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.5, 2, 5.001], + "to": [13.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 6]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [13.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [1, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [4.5, 2, 1.999], + "to": [6.5, 2.25, 2.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [3.5, 2, 2.999], + "to": [6.5, 2.25, 3.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.5, 2, 3.999], + "to": [5.5, 2.25, 4.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.5, 2, 10.999], + "to": [7, 2.25, 11.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [4.5, 2, 13.999], + "to": [7, 2.25, 14.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [3.5, 2, 11.999], + "to": [7, 2.25, 13.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.5, 2, 4.999], + "to": [4.5, 2.25, 10.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [0.02, 2, 7], + "to": [2.51, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "Torch_Back", + "from": [7, 2, 12], + "to": [9, 5, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [7, 2, 11], + "to": [9, 6, 15], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [6, 2, 12], + "to": [10, 6, 14], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Torch_Front", + "from": [7, 2, 2], + "to": [9, 5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -5.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [7, 2, 1], + "to": [9, 6, 5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -5.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [6, 2, 2], + "to": [10, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -5.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "LeftWire", + "from": [5, 2, 2.5], + "to": [7, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, -3]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [3, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [4, 2, 12.5], + "to": [5.5, 2.5, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 9]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1.5, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [4, 2, 11.5], + "to": [5, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [4, 2, 3.5], + "to": [5, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [5.5, 2, 11.5], + "to": [6.5, 2.5, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 9]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [3, 2, 8.5], + "to": [4, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [3, 2, 4.5], + "to": [4, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_left"} + } + }, + { + "name": "RightWire", + "from": [9, 2, 12.5], + "to": [11, 2.5, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [13, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [10.5, 2, 2.5], + "to": [12, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [11, 2, 3.5], + "to": [12, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [11, 2, 11.5], + "to": [12, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [9.5, 2, 1.5], + "to": [10.5, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [12, 2, 4.5], + "to": [13, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "RightWire", + "from": [12, 2, 8.5], + "to": [13, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#bluestone_right"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + { + "name": "right_base", + "origin": [8, 8, 8], + "color": 0, + "children": [3, 4, 5, 6, 7, 8, 9, 10] + }, + { + "name": "left_base", + "origin": [8, 8, 8], + "color": 0, + "children": [11, 12, 13, 14, 15, 16, 17, 18] + }, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [19, 20, 21] + }, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [22, 23, 24] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [25, 26, 27, 28, 29, 30, 31, 32] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [33, 34, 35, 36, 37, 38, 39, 40] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/back.json b/src/main/resources/assets/bluepower/models/block/rs_latch/back.json new file mode 100644 index 00000000..ee60a196 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/back.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Back", + "from": [7, 2, 12], + "to": [9, 5, 14], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [7, 2, 11], + "to": [9, 6, 15], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [6, 2, 12], + "to": [10, 6, 14], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 4.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/back_on.json b/src/main/resources/assets/bluepower/models/block/rs_latch/back_on.json new file mode 100644 index 00000000..673877ce --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/back_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/back", + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/back_on_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/back_on_z.json new file mode 100644 index 00000000..15ac0e37 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/back_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/back_z", + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/back_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/back_z.json new file mode 100644 index 00000000..6929ee11 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/back_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Back", + "from": [2, 2, 7], + "to": [4, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [1, 2, 7], + "to": [5, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [2, 2, 6], + "to": [4, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/blank.json b/src/main/resources/assets/bluepower/models/block/rs_latch/blank.json new file mode 100644 index 00000000..d574732c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/blank.json @@ -0,0 +1,283 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "FrontTorchBase", + "from": [6.5, 2, 1.5], + "to": [9, 2.25, 4.5], + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "BackTorchBase", + "from": [7, 2, 11.5], + "to": [9.5, 2.25, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, 10.3]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.5, 2, 13.001], + "to": [11.5, 2.25, 14.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 9]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9.5, 2, 12.001], + "to": [12.5, 2.25, 13.001], + "rotation": {"angle": 0, "axis": "y", "origin": [2.5, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [10.5, 2, 11.001], + "to": [13.5, 2.25, 12.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 7]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9, 2, 4.001], + "to": [13.5, 2.25, 5.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.5, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9, 2, 1.001], + "to": [11.5, 2.25, 2.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -3]}, + "faces": { + "north": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.5, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [9, 2, 2.001], + "to": [12.5, 2.25, 4.001], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 0, -1]}, + "faces": { + "north": {"uv": [0, 0, 3.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3.5, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.5, 2, 5.001], + "to": [13.5, 2.25, 11.001], + "rotation": {"angle": 0, "axis": "y", "origin": [4.5, 0, 6]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [13.49, 2, 7], + "to": [15.98, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [1, 0, -0.5]}, + "faces": { + "north": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [4.5, 2, 1.999], + "to": [6.5, 2.25, 2.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [3.5, 2, 2.999], + "to": [6.5, 2.25, 3.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.5, 2, 3.999], + "to": [5.5, 2.25, 4.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.5, 2, 10.999], + "to": [7, 2.25, 11.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [4.5, 2, 13.999], + "to": [7, 2.25, 14.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [3.5, 2, 11.999], + "to": [7, 2.25, 13.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.5, 2, 4.999], + "to": [4.5, 2.25, 10.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [0.02, 2, 7], + "to": [2.51, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 180, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + { + "name": "right_base", + "origin": [8, 8, 8], + "color": 0, + "children": [3, 4, 5, 6, 7, 8, 9, 10] + }, + { + "name": "left_base", + "origin": [8, 8, 8], + "color": 0, + "children": [11, 12, 13, 14, 15, 16, 17, 18] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/blank_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/blank_z.json new file mode 100644 index 00000000..04f4e79e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/blank_z.json @@ -0,0 +1,285 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "FrontTorchBase", + "from": [11.5, 2, 6.5], + "to": [14.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "BackTorchBase", + "from": [1.5, 2, 7], + "to": [4.5, 2.25, 9.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 7], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [1.999, 2, 9.5], + "to": [2.999, 2.25, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.999, 2, 9.5], + "to": [3.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [3.999, 2, 10.5], + "to": [4.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [10.999, 2, 9], + "to": [11.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.5, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [13.999, 2, 9], + "to": [14.999, 2.25, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.999, 2, 9], + "to": [13.999, 2.25, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3.5, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [4.999, 2, 11.5], + "to": [10.999, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [7, 2, 13.49], + "to": [9, 2.25, 15.98], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [13.001, 2, 4.5], + "to": [14.001, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [12.001, 2, 3.5], + "to": [13.001, 2.25, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [11.001, 2, 2.5], + "to": [12.001, 2.25, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [4.001, 2, 2.5], + "to": [5.001, 2.25, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 4.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4.5, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [1.001, 2, 4.5], + "to": [2.001, 2.25, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.5, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [2.001, 2, 3.5], + "to": [4.001, 2.25, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 3.5, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [5.001, 2, 2.5], + "to": [11.001, 2.25, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 6], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "RightBase", + "from": [7, 2, 0.02], + "to": [9, 2.25, 2.51], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 270, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + { + "name": "right_base", + "origin": [8, 8, 8], + "color": 0, + "children": [3, 4, 5, 6, 7, 8, 9, 10] + }, + { + "name": "left_base", + "origin": [8, 8, 8], + "color": 0, + "children": [11, 12, 13, 14, 15, 16, 17, 18] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/front.json b/src/main/resources/assets/bluepower/models/block/rs_latch/front.json new file mode 100644 index 00000000..ba7866e4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/front.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Front", + "from": [7, 2, 2], + "to": [9, 5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -5.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [7, 2, 1], + "to": [9, 6, 5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -5.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [6, 2, 2], + "to": [10, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [0, 0, -5.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/front_on.json b/src/main/resources/assets/bluepower/models/block/rs_latch/front_on.json new file mode 100644 index 00000000..7d48dcf5 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/front_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/front", + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/front_on_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/front_on_z.json new file mode 100644 index 00000000..31e09f1d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/front_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/front_z", + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/front_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/front_z.json new file mode 100644 index 00000000..f91fb417 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/front_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Front", + "from": [12, 2, 7], + "to": [14, 5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [11, 2, 7], + "to": [15, 6, 9], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [12, 2, 6], + "to": [14, 6, 10], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/left.json b/src/main/resources/assets/bluepower/models/block/rs_latch/left.json new file mode 100644 index 00000000..5a58fb93 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/left.json @@ -0,0 +1,112 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [5, 2, 2.5], + "to": [7, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [1.5, 0, -3]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "AcrossWire", + "from": [0, 2, 7.5], + "to": [3, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 12.5], + "to": [5.5, 2.5, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 9]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1.5, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 11.5], + "to": [5, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [4, 2, 3.5], + "to": [5, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-3.5, 0, 0]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [5.5, 2, 11.5], + "to": [6.5, 2.5, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 9]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [3, 2, 8.5], + "to": [4, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 6]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [3, 2, 4.5], + "to": [4, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "texture": "#bluestone_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/left_on.json b/src/main/resources/assets/bluepower/models/block/rs_latch/left_on.json new file mode 100644 index 00000000..128ea1df --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/left", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/left_on_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/left_on_z.json new file mode 100644 index 00000000..7d0709a5 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/left_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/left_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/left_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/left_z.json new file mode 100644 index 00000000..7dac6dbc --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/left_z.json @@ -0,0 +1,112 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [12.5, 2, 5], + "to": [13.5, 2.5, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 3], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [2.5, 2, 4], + "to": [3.5, 2.5, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1.5, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [3.5, 2, 4], + "to": [4.5, 2.5, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [11.5, 2, 4], + "to": [12.5, 2.5, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [1.5, 2, 5.5], + "to": [4.5, 2.5, 6.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [4.5, 2, 3], + "to": [7.5, 2.5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "TopWire", + "from": [8.5, 2, 3], + "to": [11.5, 2.5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 90, "texture": "#bluestone_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/right.json b/src/main/resources/assets/bluepower/models/block/rs_latch/right.json new file mode 100644 index 00000000..101ec52a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/right.json @@ -0,0 +1,112 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [9, 2, 12.5], + "to": [11, 2.5, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "AcrossWire", + "from": [13, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [10.5, 2, 2.5], + "to": [12, 2.5, 3.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1.5, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 3.5], + "to": [12, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [11, 2, 11.5], + "to": [12, 2.5, 12.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [9.5, 2, 1.5], + "to": [10.5, 2.5, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [12, 2, 4.5], + "to": [13, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [12, 2, 8.5], + "to": [13, 2.5, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#bluestone_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/right_on.json b/src/main/resources/assets/bluepower/models/block/rs_latch/right_on.json new file mode 100644 index 00000000..74ce91b7 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/right_on_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/right_on_z.json new file mode 100644 index 00000000..02a84185 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/right_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/rs_latch/right_z", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/right_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/right_z.json new file mode 100644 index 00000000..48dbbaf4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/right_z.json @@ -0,0 +1,113 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off", + "particle": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "AcrossWire", + "from": [2.5, 2, 9], + "to": [3.5, 2.5, 11], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "AcrossWire", + "from": [7.5, 2, 13], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [12.5, 2, 10.5], + "to": [13.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1.5, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1.5, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [11.5, 2, 11], + "to": [12.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [3.5, 2, 11], + "to": [4.5, 2.5, 12], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 1], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [11.5, 2, 9.5], + "to": [14.5, 2.5, 10.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [8.5, 2, 12], + "to": [11.5, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#bluestone_right"} + } + }, + { + "name": "TopWire", + "from": [4.5, 2, 12], + "to": [7.5, 2.5, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#bluestone_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/item/gate_rs.json b/src/main/resources/assets/bluepower/models/item/gate_rs.json new file mode 100644 index 00000000..d48029fc --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_rs.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_rs" +} From 6b4c9d71ef58376f26e700f7094d222291e5cdd1 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sat, 21 Feb 2026 23:03:26 -0500 Subject: [PATCH 16/25] started work on models for toggle latch --- .../models/block/toggle_latch/blank.json | 149 ++++++++++++++++++ .../models/block/toggle_latch/lever_back.json | 36 +++++ .../block/toggle_latch/lever_front.json | 36 +++++ 3 files changed, 221 insertions(+) create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json new file mode 100644 index 00000000..5722ebab --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json @@ -0,0 +1,149 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [1.5, 2, 11.999], + "to": [4.5, 2.25, 14.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "LeverBase", + "from": [10.5, 2, 3.999], + "to": [13.5, 2.25, 11.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 8], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [1.5, 2, 1.499], + "to": [4.5, 2.25, 4.499], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [13.509, 2, 7], + "to": [15.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [1.5, 2, 6], + "to": [5.5, 2.25, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.02, 2, 8], + "to": [2.51, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [4.5, 2, 8], + "to": [10.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 6, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 5.5, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.02, 2, 7], + "to": [10.51, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 10.49, 1], "rotation": 180, "texture": "#gate"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json new file mode 100644 index 00000000..9e962a76 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json @@ -0,0 +1,36 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "block/cobblestone", + "base": "block/cobblestone", + "lever": "block/lever" + }, + "elements": [ + { + "from": [9.5, 1.98, 4.5], + "to": [13.5, 3.98, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 1, -0.5]}, + "faces": { + "north": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "east": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "south": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "west": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "up": {"uv": [6, 6, 10, 13], "texture": "#base"} + } + }, + { + "from": [10.5, 3, 6.5], + "to": [12.5, 11, 8.5], + "rotation": {"angle": 45, "axis": "x", "origin": [11.5, 2, 7.5]}, + "faces": { + "north": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "east": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "south": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "west": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "up": {"uv": [7, 6, 9, 8], "texture": "#lever"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json new file mode 100644 index 00000000..9233b49d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json @@ -0,0 +1,36 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "block/cobblestone", + "base": "block/cobblestone", + "lever": "block/lever" + }, + "elements": [ + { + "from": [9.5, 1.98, 4.5], + "to": [13.5, 3.98, 11.5], + "rotation": {"angle": 0, "axis": "x", "origin": [3.5, 2, -0.5]}, + "faces": { + "north": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "east": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "south": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "west": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "up": {"uv": [6, 6, 10, 13], "texture": "#base"} + } + }, + { + "from": [10.5, 3, 7.5], + "to": [12.5, 11, 9.5], + "rotation": {"angle": -45, "axis": "x", "origin": [11.5, 2, 8.5]}, + "faces": { + "north": {"uv": [7, 7, 9, 15], "texture": "#lever"}, + "east": {"uv": [7, 7, 9, 15], "texture": "#lever"}, + "south": {"uv": [7, 7, 9, 15], "texture": "#lever"}, + "west": {"uv": [7, 7, 9, 15], "texture": "#lever"}, + "up": {"uv": [7, 6, 9, 8], "texture": "#lever"} + } + } + ] +} \ No newline at end of file From bb7b9afa706bd5b9b9d28ae21abef4750d261d67 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 16:09:00 -0500 Subject: [PATCH 17/25] added toggle latch lever isn't rendering yet though, going to do the model refactor first --- .../block/gates/BlockGateToggleLatch.java | 58 +++++ .../java/com/bluepowermod/init/BPBlocks.java | 3 + .../com/bluepowermod/init/BPCreativeTabs.java | 1 + .../bluepower/blockstates/gate_toggle.json | 220 ++++++++++++++++++ .../models/block/toggle_latch/back.json | 41 ++++ .../models/block/toggle_latch/back_on.json | 6 + .../models/block/toggle_latch/back_on_z.json | 6 + .../models/block/toggle_latch/back_z.json | 41 ++++ .../models/block/toggle_latch/blank.json | 20 +- .../models/block/toggle_latch/blank_z.json | 124 ++++++++++ .../models/block/toggle_latch/front.json | 41 ++++ .../models/block/toggle_latch/front_on.json | 6 + .../models/block/toggle_latch/front_on_z.json | 6 + .../models/block/toggle_latch/front_z.json | 41 ++++ .../models/block/toggle_latch/left.json | 49 ++++ .../models/block/toggle_latch/left_on.json | 6 + .../models/block/toggle_latch/left_on_z.json | 6 + .../models/block/toggle_latch/left_z.json | 49 ++++ .../models/block/toggle_latch/lever_back.json | 12 +- .../block/toggle_latch/lever_back_z.json | 36 +++ .../block/toggle_latch/lever_front.json | 20 +- .../block/toggle_latch/lever_front_z.json | 36 +++ .../models/block/toggle_latch/right.json | 23 ++ .../models/block/toggle_latch/right_on.json | 6 + .../models/block/toggle_latch/right_on_z.json | 6 + .../models/block/toggle_latch/right_z.json | 23 ++ 26 files changed, 860 insertions(+), 26 deletions(-) create mode 100644 src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java create mode 100644 src/main/resources/assets/bluepower/blockstates/gate_toggle.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/back.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/back_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/back_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/blank_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/front.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/front_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/front_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/left.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/left_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/left_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/left_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/right.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/right_on.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/right_on_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/right_z.json diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java b/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java new file mode 100644 index 00000000..c495b9f1 --- /dev/null +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java @@ -0,0 +1,58 @@ +package com.bluepowermod.block.gates; + +import com.bluepowermod.helper.DirectionHelper; +import net.minecraft.core.BlockPos; +import net.minecraft.core.Direction; +import net.minecraft.world.item.context.BlockPlaceContext; +import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.block.RedStoneWireBlock; +import net.minecraft.world.level.block.state.BlockState; +import org.jetbrains.annotations.Nullable; + +import java.util.Map; + +public class BlockGateToggleLatch extends BlockGateBase{ + @Override + protected Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos) { + Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); + Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; + Direction side_right = side_left.getOpposite(); + BlockPos pos_left = pos.relative(side_left); + BlockPos pos_right = pos.relative(side_right); + BlockState state_left = worldIn.getBlockState(pos_left); + BlockState state_right = worldIn.getBlockState(pos_right); + byte leftIn = (byte) state_left.getSignal(worldIn, pos_left, side_right); + byte rightIn = (byte) state_right.getSignal(worldIn, pos_right, side_left); + if(state_left.getBlock() instanceof RedStoneWireBlock){leftIn = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} + if(state_right.getBlock() instanceof RedStoneWireBlock){rightIn = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} + boolean frontPowered = state.getValue(POWERED_FRONT); + boolean backPowered = state.getValue(POWERED_BACK); + boolean leftPowered = state.getValue(POWERED_LEFT); + boolean rightPowered = state.getValue(POWERED_RIGHT); + if (leftPowered || rightPowered){ // Do nothing + return Map.of(Side.FRONT, (byte) (frontPowered ? 16 : 0), + Side.LEFT, leftIn, + Side.RIGHT, rightIn, + Side.BACK, (byte)(backPowered ? 16 : 0)); + + } + if (leftIn > 0 || rightIn > 0){ + frontPowered = !frontPowered; + backPowered = !backPowered; + } + return Map.of(Side.FRONT, (byte) (frontPowered ? 16 : 0), + Side.LEFT, leftIn, + Side.RIGHT, rightIn, + Side.BACK, (byte)(backPowered ? 16 : 0)); + } + + @Override + protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blockAccess, BlockPos pos) { + return side == Side.FRONT || side == Side.BACK; + } + + @Override + public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) { + return super.getStateForPlacement(context).setValue(POWERED_FRONT, true); + } +} diff --git a/src/main/java/com/bluepowermod/init/BPBlocks.java b/src/main/java/com/bluepowermod/init/BPBlocks.java index 26ac2888..768cd63f 100644 --- a/src/main/java/com/bluepowermod/init/BPBlocks.java +++ b/src/main/java/com/bluepowermod/init/BPBlocks.java @@ -25,6 +25,7 @@ import com.bluepowermod.block.gates.BlockGateNot; import com.bluepowermod.block.gates.BlockGateOr; import com.bluepowermod.block.gates.BlockGateRSLatch; +import com.bluepowermod.block.gates.BlockGateToggleLatch; import com.bluepowermod.block.gates.BlockGateXor; import com.bluepowermod.block.gates.BlockNullCell; import com.bluepowermod.block.lighting.BlockLampRGBSurface; @@ -284,6 +285,7 @@ public class BPBlocks { public static final RegistryObject blockGateXOR = BLOCKS.register("gate_xor", () -> new BlockGateXor(false)); public static final RegistryObject blockGateXNOR = BLOCKS.register("gate_xnor", () -> new BlockGateXor(true)); public static final RegistryObject blockRSLatch = BLOCKS.register("gate_rs", BlockGateRSLatch::new); + public static final RegistryObject blockToggleLatch = BLOCKS.register("gate_toggle", BlockGateToggleLatch::new); static{ BPItems.ITEMS.register(blockGateAND.getKey().location().getPath(), () -> new BlockItem(blockGateAND.get(), new Item.Properties())); @@ -296,6 +298,7 @@ public class BPBlocks { BPItems.ITEMS.register(blockGateXOR.getKey().location().getPath(), () -> new BlockItem(blockGateXOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockGateXNOR.getKey().location().getPath(), () -> new BlockItem(blockGateXNOR.get(), new Item.Properties())); BPItems.ITEMS.register(blockRSLatch.getKey().location().getPath(), () -> new BlockItem(blockRSLatch.get(), new Item.Properties())); + BPItems.ITEMS.register(blockToggleLatch.getKey().location().getPath(), () -> new BlockItem(blockToggleLatch.get(), new Item.Properties())); } public static final RegistryObject blockRedAlloyWire = BLOCKS.register(RedwireType.RED_ALLOY.getName() + "_wire", () -> new BlockAlloyWire(RedwireType.RED_ALLOY.getName()).setWIP(true)); diff --git a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java index 0ea72eb9..b625e15a 100644 --- a/src/main/java/com/bluepowermod/init/BPCreativeTabs.java +++ b/src/main/java/com/bluepowermod/init/BPCreativeTabs.java @@ -72,6 +72,7 @@ public void creativeTabEvent(BuildCreativeModeTabContentsEvent event) { event.accept(BPBlocks.blockGateXNOR.get()); event.accept(BPBlocks.blockNullCell.get()); event.accept(BPBlocks.blockRSLatch.get()); + event.accept(BPBlocks.blockToggleLatch.get()); }else if(event.getTab() == lighting.get()){ event.acceptAll(BPBlocks.allLamps.stream().map(block -> new ItemStack(block.get())).collect(Collectors.toList())); }else if(event.getTab() == microblocks.get()){ diff --git a/src/main/resources/assets/bluepower/blockstates/gate_toggle.json b/src/main/resources/assets/bluepower/blockstates/gate_toggle.json new file mode 100644 index 00000000..1a39de52 --- /dev/null +++ b/src/main/resources/assets/bluepower/blockstates/gate_toggle.json @@ -0,0 +1,220 @@ +{ + "multipart": [ + {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank"}}, + {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on"}}, + {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left"}}, + {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on"}}, + {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right"}}, + {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on"}}, + {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front"}}, + {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on"}}, + {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back"}}, + {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank","y":90}}, + {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on","y":90}}, + {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left","y":90}}, + {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on","y":90}}, + {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right","y":90}}, + {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on","y":90}}, + {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front","y":90}}, + {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on","y":90}}, + {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back","y":90}}, + {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","y":180}}, + {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","y":180}}, + {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","y":180}}, + {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","y":180}}, + {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","y":180}}, + {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","y":180}}, + {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","y":180}}, + {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","y":180}}, + {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","y":180}}, + {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank","y":270}}, + {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on","y":270}}, + {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left","y":270}}, + {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on","y":270}}, + {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right","y":270}}, + {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on","y":270}}, + {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front","y":270}}, + {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on","y":270}}, + {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back","y":270}}, + {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":0}}, + {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":90}}, + {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":180}}, + {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":270}}, + {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":0}}, + {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":0}}, + {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":180}}, + {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":-180}}, + {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":180}}, + {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":180}}, + {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":0}}, + {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":0}}, + {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":90}}, + {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":90}}, + {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":270}}, + {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":-90}}, + {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":270}}, + {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":270}}, + {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":90}}, + {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":0}}, + {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":90}}, + {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":180}}, + {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":270}}, + {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":0}}, + {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":180}}, + {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":-180}}, + {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":180}}, + {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":0}}, + {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":90}}, + {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":270}}, + {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":-90}}, + {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":270}}, + {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":90}}, + {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":0}}, + {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":90}}, + {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":180}}, + {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":270}}, + {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":0}}, + {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":180}}, + {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":-180}}, + {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":180}}, + {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":0}}, + {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":90}}, + {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":270}}, + {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":-90}}, + {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":270}}, + {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":90}}, + {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":0}}, + {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":90}}, + {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":180}}, + {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":270}}, + {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":0}}, + {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":180}}, + {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":-180}}, + {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":180}}, + {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":0}}, + {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":90}}, + {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":270}}, + {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":-90}}, + {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":270}}, + {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":90}}, + {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":0}}, + {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":90}}, + {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":180}}, + {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":270}}, + {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":0}}, + {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":180}}, + {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":-180}}, + {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":180}}, + {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":0}}, + {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":90}}, + {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":270}}, + {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":-90}}, + {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":270}}, + {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":90}}, + {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":0}}, + {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":90}}, + {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":180}}, + {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":270}}, + {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":0}}, + {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":180}}, + {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":-180}}, + {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":180}}, + {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":0}}, + {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":90}}, + {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":270}}, + {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":-90}}, + {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":270}}, + {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":90}}, + {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":0}}, + {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":90}}, + {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":180}}, + {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":270}}, + {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":0}}, + {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":180}}, + {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":-180}}, + {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":180}}, + {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":0}}, + {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":90}}, + {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":270}}, + {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":-90}}, + {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":270}}, + {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":90}}, + {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":0}}, + {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":90}}, + {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":180}}, + {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":270}}, + {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":0}}, + {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":180}}, + {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":-180}}, + {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":180}}, + {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":0}}, + {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":90}}, + {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":270}}, + {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":-90}}, + {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":270}}, + {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":90}}, + {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":0}}, + {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":90}}, + {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":180}}, + {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":270}}, + {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":0}}, + {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":180}}, + {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":-180}}, + {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":180}}, + {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":0}}, + {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":90}}, + {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":270}}, + {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":-90}}, + {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":270}}, + {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":90}}, + {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":90}} + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/back.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/back.json new file mode 100644 index 00000000..7d1f68bc --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/back.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Back", + "from": [2, 2, 12.5], + "to": [4, 5, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, 5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [2, 2, 11.5], + "to": [4, 6, 15.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, 5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [1, 2, 12.5], + "to": [5, 6, 14.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, 5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/back_on.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/back_on.json new file mode 100644 index 00000000..db47037d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/back_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/back", + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/back_on_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/back_on_z.json new file mode 100644 index 00000000..c9416f9c --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/back_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/back_z", + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/back_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/back_z.json new file mode 100644 index 00000000..ec789749 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/back_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_back": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Back", + "from": [1.5, 2, 2], + "to": [3.5, 5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [0.5, 2, 2], + "to": [4.5, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [1.5, 2, 1], + "to": [3.5, 6, 5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json index 5722ebab..39ed7dd9 100644 --- a/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/blank.json @@ -3,9 +3,9 @@ "credit": "Made with Blockbench", "ambientocclusion": false, "textures": { - "particle": "bluepower:blocks/gates/gate", - "gate": "bluepower:blocks/gates/gate" - }, + "gate": "bluepower:blocks/gates/gate", + "particle": "bluepower:blocks/gates/gate" + }, "elements": [ { "name": "Base", @@ -34,13 +34,13 @@ }, { "name": "LeverBase", - "from": [10.5, 2, 3.999], + "from": [8.5, 2, 3.999], "to": [13.5, 2.25, 11.999], "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { - "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, "east": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, - "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, "west": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, "up": {"uv": [0, 0, 1, 8], "rotation": 180, "texture": "#gate"} } @@ -99,24 +99,24 @@ { "name": "AcrossBase", "from": [4.5, 2, 8], - "to": [10.5, 2.25, 9], + "to": [8.5, 2.25, 9], "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "south": {"uv": [0, 0, 6, 0.25], "texture": "#gate"}, "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, - "up": {"uv": [0, 0, 5.5, 1], "rotation": 180, "texture": "#gate"} + "up": {"uv": [0, 0, 4, 1], "rotation": 180, "texture": "#gate"} } }, { "name": "AcrossBase", "from": [0.02, 2, 7], - "to": [10.51, 2.25, 8], + "to": [8.51, 2.25, 8], "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, "faces": { "north": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, "south": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, - "up": {"uv": [0, 0, 10.49, 1], "rotation": 180, "texture": "#gate"} + "up": {"uv": [0, 0, 8.49, 1], "rotation": 180, "texture": "#gate"} } } ], diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/blank_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/blank_z.json new file mode 100644 index 00000000..a71919bb --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/blank_z.json @@ -0,0 +1,124 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "bluepower:blocks/gates/gate", + "gate": "bluepower:blocks/gates/gate" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "east": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "south": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "west": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "rotation": 90, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [1.001, 2, 1.5], + "to": [4.001, 2.25, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "LeverBase", + "from": [4.001, 2, 8.5], + "to": [12.001, 2.25, 13.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 8], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [11.501, 2, 1.5], + "to": [14.501, 2.25, 4.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 13.509], + "to": [9, 2.25, 15.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [9, 2, 1.5], + "to": [10, 2.25, 5.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 0.02], + "to": [8, 2.25, 2.51], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [7, 2, 4.5], + "to": [8, 2.25, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 6, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 270, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [8, 2, 0.02], + "to": [9, 2.25, 8.51], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 8.49, 1], "rotation": 270, "texture": "#gate"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/front.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/front.json new file mode 100644 index 00000000..0d552ba4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/front.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Front", + "from": [2, 2, 2], + "to": [4, 5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, -5.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [2, 2, 1], + "to": [4, 6, 5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, -5.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [1, 2, 2], + "to": [5, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, -5.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/front_on.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/front_on.json new file mode 100644 index 00000000..2f0785b4 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/front_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/front", + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/front_on_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/front_on_z.json new file mode 100644 index 00000000..983960ab --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/front_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/front_z", + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/front_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/front_z.json new file mode 100644 index 00000000..7e6ec596 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/front_z.json @@ -0,0 +1,41 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "torch_front": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Torch_Front", + "from": [12, 2, 2], + "to": [14, 5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [11, 2, 2], + "to": [15, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [12, 2, 1], + "to": [14, 6, 5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/left.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/left.json new file mode 100644 index 00000000..e46d8434 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/left.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "LeftWire", + "from": [5, 2, 7.5], + "to": [9, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [2, 2, 6.5], + "to": [5, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [2, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/left_on.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/left_on.json new file mode 100644 index 00000000..d83c545e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/left_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/left", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/left_on_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/left_on_z.json new file mode 100644 index 00000000..3e1cb5d7 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/left_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/left_z", + "textures": { + "bluestone_left": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/left_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/left_z.json new file mode 100644 index 00000000..553bd9c8 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/left_z.json @@ -0,0 +1,49 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_left": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "LeftWire", + "from": [7.5, 2, 5], + "to": [8.5, 2.5, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [8.5, 2, 2], + "to": [9.5, 2.5, 5], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_left"} + } + }, + { + "name": "LeftWire", + "from": [7.5, 2, 0], + "to": [8.5, 2.5, 2], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "east": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_left"}, + "west": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_left"}, + "up": {"uv": [0, 0, 2, 1], "rotation": 90, "texture": "#bluestone_left"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json index 9e962a76..ace5a201 100644 --- a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back.json @@ -9,9 +9,9 @@ }, "elements": [ { - "from": [9.5, 1.98, 4.5], - "to": [13.5, 3.98, 11.5], - "rotation": {"angle": 0, "axis": "y", "origin": [3.5, 1, -0.5]}, + "from": [9, 1.98, 4.5], + "to": [13, 3.98, 11.5], + "rotation": {"angle": 0, "axis": "y", "origin": [3, 1, -0.5]}, "faces": { "north": {"uv": [6, 0, 10, 2], "texture": "#base"}, "east": {"uv": [3, 0, 10, 2], "texture": "#base"}, @@ -21,9 +21,9 @@ } }, { - "from": [10.5, 3, 6.5], - "to": [12.5, 11, 8.5], - "rotation": {"angle": 45, "axis": "x", "origin": [11.5, 2, 7.5]}, + "from": [10, 2, 4.9], + "to": [12, 10, 6.9], + "rotation": {"angle": 45, "axis": "x", "origin": [11, 0, 5.9]}, "faces": { "north": {"uv": [7, 6, 9, 16], "texture": "#lever"}, "east": {"uv": [7, 6, 9, 16], "texture": "#lever"}, diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back_z.json new file mode 100644 index 00000000..db4b75ea --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_back_z.json @@ -0,0 +1,36 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "block/cobblestone", + "base": "block/cobblestone", + "lever": "block/lever" + }, + "elements": [ + { + "from": [4.5, 1.98, 9], + "to": [11.5, 3.98, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 1, 7.5]}, + "faces": { + "north": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "east": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "south": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "west": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "up": {"uv": [6, 6, 10, 13], "rotation": 90, "texture": "#base"} + } + }, + { + "from": [0.1, -1, 10], + "to": [8.1, 1, 12], + "rotation": {"angle": -45, "axis": "z", "origin": [10.1, 0, 11]}, + "faces": { + "north": {"uv": [7, 6, 9, 16], "rotation": 90, "texture": "#lever"}, + "south": {"uv": [7, 6, 9, 16], "rotation": 270, "texture": "#lever"}, + "west": {"uv": [7, 6, 9, 8], "texture": "#lever"}, + "up": {"uv": [7, 6, 9, 16], "rotation": 270, "texture": "#lever"}, + "down": {"uv": [7, 6, 9, 16], "rotation": 270, "texture": "#lever"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json index 9233b49d..fd582a9c 100644 --- a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front.json @@ -9,9 +9,9 @@ }, "elements": [ { - "from": [9.5, 1.98, 4.5], - "to": [13.5, 3.98, 11.5], - "rotation": {"angle": 0, "axis": "x", "origin": [3.5, 2, -0.5]}, + "from": [9, 1.98, 4.5], + "to": [13, 3.98, 11.5], + "rotation": {"angle": 0, "axis": "x", "origin": [3, 2, -0.5]}, "faces": { "north": {"uv": [6, 0, 10, 2], "texture": "#base"}, "east": {"uv": [3, 0, 10, 2], "texture": "#base"}, @@ -21,14 +21,14 @@ } }, { - "from": [10.5, 3, 7.5], - "to": [12.5, 11, 9.5], - "rotation": {"angle": -45, "axis": "x", "origin": [11.5, 2, 8.5]}, + "from": [10, 2, 8.1], + "to": [12, 10, 10.1], + "rotation": {"angle": -45, "axis": "x", "origin": [11, 1, 9.1]}, "faces": { - "north": {"uv": [7, 7, 9, 15], "texture": "#lever"}, - "east": {"uv": [7, 7, 9, 15], "texture": "#lever"}, - "south": {"uv": [7, 7, 9, 15], "texture": "#lever"}, - "west": {"uv": [7, 7, 9, 15], "texture": "#lever"}, + "north": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "east": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "south": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "west": {"uv": [7, 6, 9, 16], "texture": "#lever"}, "up": {"uv": [7, 6, 9, 8], "texture": "#lever"} } } diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front_z.json new file mode 100644 index 00000000..5d1100f5 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/lever_front_z.json @@ -0,0 +1,36 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "particle": "block/cobblestone", + "base": "block/cobblestone", + "lever": "block/lever" + }, + "elements": [ + { + "from": [4.5, 1.98, 9], + "to": [11.5, 3.98, 13], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 2, 7.5]}, + "faces": { + "north": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "east": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "south": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "west": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "up": {"uv": [6, 6, 10, 13], "rotation": 90, "texture": "#base"} + } + }, + { + "from": [5.9, 2, 10], + "to": [7.9, 10, 12], + "rotation": {"angle": -45, "axis": "z", "origin": [6.9, 1, 11]}, + "faces": { + "north": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "east": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "south": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "west": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "up": {"uv": [7, 6, 9, 8], "rotation": 90, "texture": "#lever"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/right.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/right.json new file mode 100644 index 00000000..c9e119a7 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/right.json @@ -0,0 +1,23 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "RightWire", + "from": [13, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [9.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_right"} + } + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/right_on.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/right_on.json new file mode 100644 index 00000000..e9309bb3 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/right_on.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/right", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/right_on_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/right_on_z.json new file mode 100644 index 00000000..2066f14a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/right_on_z.json @@ -0,0 +1,6 @@ +{ + "parent": "bluepower:block/toggle_latch/right_z", + "textures": { + "bluestone_right": "bluepower:base/bluestone_on" + } +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/right_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/right_z.json new file mode 100644 index 00000000..ea5ce10e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/right_z.json @@ -0,0 +1,23 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "bluestone_right": "bluepower:base/bluestone_off" + }, + "elements": [ + { + "name": "RightWire", + "from": [7.5, 2, 13], + "to": [8.5, 2.5, 16], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "east": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "south": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_right"}, + "west": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_right"}, + "up": {"uv": [0, 0, 3, 1], "rotation": 90, "texture": "#bluestone_right"} + } + } + ] +} \ No newline at end of file From 5ee801f71e43460208344a3334dba10f3c9663df Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 16:18:03 -0500 Subject: [PATCH 18/25] added item model for toggle latch --- .../bluepower/models/block/gate_toggle.json | 333 ++++++++++++++++++ .../bluepower/models/item/gate_toggle.json | 3 + 2 files changed, 336 insertions(+) create mode 100644 src/main/resources/assets/bluepower/models/block/gate_toggle.json create mode 100644 src/main/resources/assets/bluepower/models/item/gate_toggle.json diff --git a/src/main/resources/assets/bluepower/models/block/gate_toggle.json b/src/main/resources/assets/bluepower/models/block/gate_toggle.json new file mode 100644 index 00000000..be3bf59d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/gate_toggle.json @@ -0,0 +1,333 @@ +{ + "format_version": "1.9.0", + "credit": "Made with Blockbench", + "ambientocclusion": false, + "textures": { + "gate": "bluepower:blocks/gates/gate", + "base": "block/cobblestone", + "lever": "block/lever", + "bluestone_off": "bluepower:base/bluestone_off", + "torch_front": "bluepower:blocks/bluestone_torch_on", + "torch_back": "bluepower:blocks/bluestone_torch_off" + }, + "elements": [ + { + "name": "Base", + "from": [0, 0, 0], + "to": [16, 2, 16], + "faces": { + "north": {"uv": [0, 0, 16, 1], "rotation": 180, "texture": "#gate"}, + "east": {"uv": [15, 0, 16, 16], "rotation": 90, "texture": "#gate"}, + "south": {"uv": [0, 15, 16, 16], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 16], "rotation": 270, "texture": "#gate"}, + "up": {"uv": [0, 0, 16, 16], "texture": "#gate"}, + "down": {"uv": [0, 0, 16, 16], "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [1.5, 2, 11.999], + "to": [4.5, 2.25, 14.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "LeverBase", + "from": [8.5, 2, 3.999], + "to": [13.5, 2.25, 11.999], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 5, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 8, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 8], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "TorchBase", + "from": [1.5, 2, 1.499], + "to": [4.5, 2.25, 4.499], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 3, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 1, 3], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [13.509, 2, 7], + "to": [15.999, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 3.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 2, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [1.5, 2, 6], + "to": [5.5, 2.25, 7], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.02, 2, 8], + "to": [2.51, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "east": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 2.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 2.49, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [4.5, 2, 8], + "to": [8.5, 2.25, 9], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "south": {"uv": [0, 0, 6, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 4, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "name": "AcrossBase", + "from": [0.02, 2, 7], + "to": [8.51, 2.25, 8], + "rotation": {"angle": 0, "axis": "y", "origin": [8, 0, 8]}, + "faces": { + "north": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, + "south": {"uv": [0, 0, 10.49, 0.25], "texture": "#gate"}, + "west": {"uv": [0, 0, 1, 0.25], "texture": "#gate"}, + "up": {"uv": [0, 0, 8.49, 1], "rotation": 180, "texture": "#gate"} + } + }, + { + "from": [9, 1.98, 4.5], + "to": [13, 3.98, 11.5], + "rotation": {"angle": 0, "axis": "x", "origin": [3, 2, -0.5]}, + "faces": { + "north": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "east": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "south": {"uv": [6, 0, 10, 2], "texture": "#base"}, + "west": {"uv": [3, 0, 10, 2], "texture": "#base"}, + "up": {"uv": [6, 6, 10, 13], "texture": "#base"} + } + }, + { + "from": [10, 2, 8.1], + "to": [12, 10, 10.1], + "rotation": {"angle": -45, "axis": "x", "origin": [11, 1, 9.1]}, + "faces": { + "north": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "east": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "south": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "west": {"uv": [7, 6, 9, 16], "texture": "#lever"}, + "up": {"uv": [7, 6, 9, 8], "texture": "#lever"} + } + }, + { + "name": "LeftWire", + "from": [5, 2, 7.5], + "to": [9, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [2, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 4, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 4, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "LeftWire", + "from": [2, 2, 6.5], + "to": [5, 2.5, 7.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-2, 0, 1]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "LeftWire", + "from": [0, 2, 7.5], + "to": [2, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-4, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 2, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 2, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "RightWire", + "from": [13, 2, 7.5], + "to": [16, 2.5, 8.5], + "rotation": {"angle": 0, "axis": "y", "origin": [9.5, 0, 2]}, + "faces": { + "north": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "east": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "south": {"uv": [0, 0, 3, 0.5], "texture": "#bluestone_off"}, + "west": {"uv": [0, 0, 1, 0.5], "texture": "#bluestone_off"}, + "up": {"uv": [0, 0, 3, 1], "texture": "#bluestone_off"} + } + }, + { + "name": "Torch_Back", + "from": [2, 2, 12.5], + "to": [4, 5, 14.5], + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, 5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [2, 2, 11.5], + "to": [4, 6, 15.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, 5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Back", + "from": [1, 2, 12.5], + "to": [5, 6, 14.5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, 5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_back"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_back"} + } + }, + { + "name": "Torch_Front", + "from": [2, 2, 2], + "to": [4, 5, 4], + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, -5.5]}, + "faces": { + "up": {"uv": [7, 6, 9, 8], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [2, 2, 1], + "to": [4, 6, 5], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, -5.5]}, + "faces": { + "east": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "west": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + }, + { + "name": "Front", + "from": [1, 2, 2], + "to": [5, 6, 4], + "shade": false, + "rotation": {"angle": 0, "axis": "y", "origin": [-5, 0, -5.5]}, + "faces": { + "north": {"uv": [6, 5, 10, 9], "texture": "#torch_front"}, + "south": {"uv": [6, 5, 10, 9], "texture": "#torch_front"} + } + } + ], + "display": { + "thirdperson_righthand": { + "rotation": [75, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.375, 0.375, 0.375] + }, + "firstperson_righthand": { + "rotation": [0, -45, 0], + "translation": [0, 2.5, 0], + "scale": [0.4, 0.4, 0.4] + }, + "ground": { + "translation": [0, 3, 0], + "scale": [0.25, 0.25, 0.25] + }, + "gui": { + "rotation": [30, 45, 0], + "scale": [0.625, 0.625, 0.625] + }, + "head": { + "rotation": [0, -180, 0] + }, + "fixed": { + "rotation": [0, -180, 0] + } + }, + "groups": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + { + "name": "lever_front", + "origin": [8, 8, 8], + "color": 0, + "children": [9, 10] + }, + { + "name": "left", + "origin": [8, 8, 8], + "color": 0, + "children": [11, 12, 13] + }, + { + "name": "right", + "origin": [8, 8, 8], + "color": 0, + "children": [14] + }, + { + "name": "back", + "origin": [8, 8, 8], + "color": 0, + "children": [15, 16, 17] + }, + { + "name": "front", + "origin": [8, 8, 8], + "color": 0, + "children": [18, 19, 20] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/item/gate_toggle.json b/src/main/resources/assets/bluepower/models/item/gate_toggle.json new file mode 100644 index 00000000..dde7bd3b --- /dev/null +++ b/src/main/resources/assets/bluepower/models/item/gate_toggle.json @@ -0,0 +1,3 @@ +{ + "parent": "bluepower:block/gate_toggle" +} From f77fdfd190664a4a95a69e2937d46adfcd5e8d9a Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 19:12:33 -0500 Subject: [PATCH 19/25] started work on gate baked model not using tiles yet, but will do that after getting all the new gates converted --- .../client/render/GateBakedModel.java | 82 ++++++ .../bluepowermod/client/render/GateModel.java | 45 ++++ .../client/render/GateModelLoader.java | 58 +++++ .../client/render/IGateCondition.java | 9 + .../bluepowermod/client/render/Renderers.java | 6 + .../bluepower/blockstates/gate_and.json | 244 ++---------------- .../bluepower/models/block/and_gate/full.json | 55 ++++ .../models/block/and_gate/full_z.json | 57 ++++ 8 files changed, 338 insertions(+), 218 deletions(-) create mode 100644 src/main/java/com/bluepowermod/client/render/GateBakedModel.java create mode 100644 src/main/java/com/bluepowermod/client/render/GateModel.java create mode 100644 src/main/java/com/bluepowermod/client/render/GateModelLoader.java create mode 100644 src/main/java/com/bluepowermod/client/render/IGateCondition.java create mode 100644 src/main/resources/assets/bluepower/models/block/and_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/and_gate/full_z.json diff --git a/src/main/java/com/bluepowermod/client/render/GateBakedModel.java b/src/main/java/com/bluepowermod/client/render/GateBakedModel.java new file mode 100644 index 00000000..3ea4c13d --- /dev/null +++ b/src/main/java/com/bluepowermod/client/render/GateBakedModel.java @@ -0,0 +1,82 @@ +package com.bluepowermod.client.render; + +import com.bluepowermod.block.gates.BlockGateBase; +import it.unimi.dsi.fastutil.Pair; +import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap; +import net.minecraft.client.renderer.RenderType; +import net.minecraft.client.renderer.block.model.BakedQuad; +import net.minecraft.client.renderer.block.model.ItemOverrides; +import net.minecraft.client.renderer.texture.TextureAtlasSprite; +import net.minecraft.client.resources.model.BakedModel; +import net.minecraft.core.Direction; +import net.minecraft.util.RandomSource; +import net.minecraft.world.level.block.state.BlockState; +import net.minecraftforge.client.model.data.ModelData; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class GateBakedModel implements BakedModel { + private final List> models; + private final TextureAtlasSprite particle; + + public GateBakedModel(List> models, TextureAtlasSprite particle) { + this.models = models; + this.particle = particle; + } + + @Override + public List getQuads(@Nullable BlockState blockState, @Nullable Direction direction, RandomSource randomSource) { + return List.of(); + } + + @Override + public @NotNull List getQuads(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData data, @Nullable RenderType renderType) { + List quads = new ArrayList<>(); + Map redstoneStates = new HashMap<>(); + redstoneStates.put("powered_back", state.getValue(BlockGateBase.POWERED_BACK)); + redstoneStates.put("powered_front", state.getValue(BlockGateBase.POWERED_FRONT)); + redstoneStates.put("powered_left", state.getValue(BlockGateBase.POWERED_LEFT)); + redstoneStates.put("powered_right", state.getValue(BlockGateBase.POWERED_RIGHT)); + for(Pair pair : models){ + if (pair.key().test(redstoneStates)){ + quads.addAll(pair.value().getQuads(state, side, rand, data, renderType)); + } + } + return quads; + } + + @Override + public boolean useAmbientOcclusion() { + return false; + } + + @Override + public boolean isGui3d() { + return false; + } + + @Override + public boolean usesBlockLight() { + return false; + } + + @Override + public boolean isCustomRenderer() { + return true; + } + + @Override + public TextureAtlasSprite getParticleIcon() { + return particle; + } + + @Override + public ItemOverrides getOverrides() { + return ItemOverrides.EMPTY; + } +} diff --git a/src/main/java/com/bluepowermod/client/render/GateModel.java b/src/main/java/com/bluepowermod/client/render/GateModel.java new file mode 100644 index 00000000..5ea74b65 --- /dev/null +++ b/src/main/java/com/bluepowermod/client/render/GateModel.java @@ -0,0 +1,45 @@ +package com.bluepowermod.client.render; + +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import it.unimi.dsi.fastutil.Pair; +import net.minecraft.client.renderer.block.model.ItemOverrides; +import net.minecraft.client.renderer.texture.TextureAtlas; +import net.minecraft.client.renderer.texture.TextureAtlasSprite; +import net.minecraft.client.resources.model.BakedModel; +import net.minecraft.client.resources.model.Material; +import net.minecraft.client.resources.model.ModelBaker; +import net.minecraft.client.resources.model.ModelState; +import net.minecraft.client.resources.model.UnbakedModel; +import net.minecraft.resources.ResourceLocation; +import net.minecraftforge.client.model.geometry.IGeometryBakingContext; +import net.minecraftforge.client.model.geometry.IUnbakedGeometry; + +import java.util.List; +import java.util.function.Function; + +public class GateModel implements IUnbakedGeometry { + private final List> models; + private final ResourceLocation particle; + + public GateModel(List> models, ResourceLocation particle) { + this.models = models; + this.particle = particle; + } + + @Override + public BakedModel bake(IGeometryBakingContext iGeometryBakingContext, ModelBaker modelBaker, Function function, ModelState modelState, ItemOverrides itemOverrides, ResourceLocation resourceLocation) { + ImmutableList.Builder> builder = ImmutableList.builder(); + this.models.forEach((model) -> { + builder.add(Pair.of(model.key(), model.value().bake(modelBaker, function, modelState, resourceLocation))); + }); + return new GateBakedModel(builder.build(), function.apply(new Material(TextureAtlas.LOCATION_BLOCKS, particle))); + } + + @Override + public void resolveParents(Function modelGetter, IGeometryBakingContext context) { + for (Pair unbakedModel : models) { + unbakedModel.value().resolveParents(modelGetter); + } + } +} diff --git a/src/main/java/com/bluepowermod/client/render/GateModelLoader.java b/src/main/java/com/bluepowermod/client/render/GateModelLoader.java new file mode 100644 index 00000000..5d570aba --- /dev/null +++ b/src/main/java/com/bluepowermod/client/render/GateModelLoader.java @@ -0,0 +1,58 @@ +package com.bluepowermod.client.render; + +import com.google.common.collect.ImmutableList; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.JsonPrimitive; +import it.unimi.dsi.fastutil.Pair; +import net.minecraft.client.renderer.block.model.BlockModel; +import net.minecraft.client.renderer.texture.MissingTextureAtlasSprite; +import net.minecraft.client.resources.model.UnbakedModel; +import net.minecraft.resources.ResourceLocation; +import net.minecraftforge.client.model.geometry.IGeometryBakingContext; +import net.minecraftforge.client.model.geometry.IGeometryLoader; + +import java.util.Map; +import java.util.Map.Entry; +import java.util.stream.Collectors; + +public class GateModelLoader implements IGeometryLoader { + @Override + public GateModel read(JsonObject jsonObject, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException { + JsonArray models = jsonObject.getAsJsonArray("models"); + ResourceLocation particle = jsonObject.has("particle") ? new ResourceLocation(jsonObject.get("particle").getAsString()) : MissingTextureAtlasSprite.getLocation(); + ImmutableList.Builder> builder = ImmutableList.builder(); + for (JsonElement model : models) { + String modelName = null; + IGateCondition condition = IGateCondition.ALWAYS_TRUE; + if (model instanceof JsonPrimitive primitive && primitive.isString()){ + modelName = primitive.getAsString(); + } else if (model instanceof JsonObject object) { + modelName = object.getAsJsonPrimitive("model").getAsString(); + if (object.has("when")){ + JsonObject when = object.getAsJsonObject("when"); + Map conditions = when.asMap().entrySet().stream() + .filter(e -> e.getValue() instanceof JsonPrimitive primitive && primitive.isBoolean()) + .collect(Collectors.toMap(Entry::getKey, e -> e.getValue().getAsBoolean())); + condition = m -> { + boolean[] bool = new boolean[1]; + bool[0] = true; + conditions.forEach((s, o) -> { + bool[0] &= m.containsKey(s) && m.get(s).equals(o); + }); + return bool[0]; + }; + } + } + if (modelName != null){ + JsonObject modelObject = new JsonObject(); + modelObject.addProperty("parent", modelName); + builder.add(Pair.of(condition, jsonDeserializationContext.deserialize(modelObject, BlockModel.class))); + } + } + return new GateModel(builder.build(), particle); + } +} diff --git a/src/main/java/com/bluepowermod/client/render/IGateCondition.java b/src/main/java/com/bluepowermod/client/render/IGateCondition.java new file mode 100644 index 00000000..c8a9deb6 --- /dev/null +++ b/src/main/java/com/bluepowermod/client/render/IGateCondition.java @@ -0,0 +1,9 @@ +package com.bluepowermod.client.render; + +import java.util.Map; + +@FunctionalInterface +public interface IGateCondition { + IGateCondition ALWAYS_TRUE = m -> true; + boolean test(Map map); +} diff --git a/src/main/java/com/bluepowermod/client/render/Renderers.java b/src/main/java/com/bluepowermod/client/render/Renderers.java index 23a1b7b1..f3245c99 100644 --- a/src/main/java/com/bluepowermod/client/render/Renderers.java +++ b/src/main/java/com/bluepowermod/client/render/Renderers.java @@ -26,6 +26,7 @@ import net.minecraft.client.renderer.RenderType; import net.minecraft.client.renderer.ItemBlockRenderTypes; import net.minecraftforge.client.event.ModelEvent; +import net.minecraftforge.client.event.ModelEvent.RegisterGeometryLoaders; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.api.distmarker.Dist; @@ -80,6 +81,11 @@ public void onModelBakeEvent(ModelEvent.ModifyBakingResult event) { } + @SubscribeEvent + public void onRegisterGeometryLoadersEvent(RegisterGeometryLoaders event){ + event.register("gate", new GateModelLoader()); + } + public static void init() { BlockEntityRenderers.register(BPBlockEntityType.LAMP.get(), context -> new RenderLamp()); diff --git a/src/main/resources/assets/bluepower/blockstates/gate_and.json b/src/main/resources/assets/bluepower/blockstates/gate_and.json index 243da86e..08bc7a6d 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_and.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_and.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/and_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/and_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/and_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/and_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/and_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/and_gate/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/and_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/and_gate/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/and_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/and_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/and_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/and_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/and_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/and_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/and_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/and_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/and_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/and_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/and_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/and_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/and_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/and_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/and_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/and_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/and_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/and_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/and_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/and_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/and_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/and_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/and_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/and_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/and_gate/full.json b/src/main/resources/assets/bluepower/models/block/and_gate/full.json new file mode 100644 index 00000000..a7fa3246 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/and_gate/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/and_gate/blank", + { + "model": "bluepower:block/and_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/and_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/and_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/and_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/and_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/and_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/and_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/and_gate/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json new file mode 100644 index 00000000..ec5a0c07 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json @@ -0,0 +1,57 @@ +{ + "loader": "bluepower:gate", + "models": [ + { + "model": "bluepower:block/and_gate/blank_z" + }, + { + "model": "bluepower:block/and_gate/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/and_gate/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/and_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/and_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/and_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/and_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/and_gate/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/and_gate/right_on_z", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file From 88f5788069dd76fbed2e61d6d7c8dc6524748b11 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 20:48:24 -0500 Subject: [PATCH 20/25] made all the gates use the new gate baked model --- .../client/render/GateModelLoader.java | 48 ++- .../bluepower/blockstates/gate_buffer.json | 244 ++-------------- .../bluepower/blockstates/gate_nand.json | 244 ++-------------- .../bluepower/blockstates/gate_nor.json | 244 ++-------------- .../bluepower/blockstates/gate_not.json | 244 ++-------------- .../assets/bluepower/blockstates/gate_or.json | 244 ++-------------- .../assets/bluepower/blockstates/gate_rs.json | 244 ++-------------- .../bluepower/blockstates/gate_toggle.json | 244 ++-------------- .../bluepower/blockstates/gate_xnor.json | 276 ++---------------- .../bluepower/blockstates/gate_xor.json | 276 ++---------------- .../models/block/and_gate/full_z.json | 4 +- .../models/block/buffer_gate/full.json | 55 ++++ .../models/block/buffer_gate/full_z.json | 55 ++++ .../models/block/nand_gate/full.json | 55 ++++ .../models/block/nand_gate/full_z.json | 55 ++++ .../bluepower/models/block/nor_gate/full.json | 55 ++++ .../models/block/nor_gate/full_z.json | 55 ++++ .../bluepower/models/block/not_gate/full.json | 55 ++++ .../models/block/not_gate/full_z.json | 55 ++++ .../bluepower/models/block/or_gate/full.json | 55 ++++ .../models/block/or_gate/full_z.json | 55 ++++ .../bluepower/models/block/rs_latch/full.json | 55 ++++ .../models/block/rs_latch/full_z.json | 55 ++++ .../models/block/toggle_latch/full.json | 69 +++++ .../models/block/toggle_latch/full_z.json | 69 +++++ .../models/block/xnor_gate/full.json | 107 +++++++ .../models/block/xnor_gate/full_z.json | 107 +++++++ .../bluepower/models/block/xor_gate/full.json | 107 +++++++ .../models/block/xor_gate/full_z.json | 107 +++++++ 29 files changed, 1500 insertions(+), 2038 deletions(-) create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/buffer_gate/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nand_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/nand_gate/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/nor_gate/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/not_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/not_gate/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/or_gate/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/rs_latch/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/toggle_latch/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/xnor_gate/full_z.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/full.json create mode 100644 src/main/resources/assets/bluepower/models/block/xor_gate/full_z.json diff --git a/src/main/java/com/bluepowermod/client/render/GateModelLoader.java b/src/main/java/com/bluepowermod/client/render/GateModelLoader.java index 5d570aba..a40dee94 100644 --- a/src/main/java/com/bluepowermod/client/render/GateModelLoader.java +++ b/src/main/java/com/bluepowermod/client/render/GateModelLoader.java @@ -15,8 +15,11 @@ import net.minecraftforge.client.model.geometry.IGeometryBakingContext; import net.minecraftforge.client.model.geometry.IGeometryLoader; +import java.util.ArrayList; +import java.util.List; import java.util.Map; import java.util.Map.Entry; +import java.util.function.Predicate; import java.util.stream.Collectors; public class GateModelLoader implements IGeometryLoader { @@ -34,16 +37,43 @@ public GateModel read(JsonObject jsonObject, JsonDeserializationContext jsonDese modelName = object.getAsJsonPrimitive("model").getAsString(); if (object.has("when")){ JsonObject when = object.getAsJsonObject("when"); - Map conditions = when.asMap().entrySet().stream() - .filter(e -> e.getValue() instanceof JsonPrimitive primitive && primitive.isBoolean()) - .collect(Collectors.toMap(Entry::getKey, e -> e.getValue().getAsBoolean())); - condition = m -> { - boolean[] bool = new boolean[1]; - bool[0] = true; - conditions.forEach((s, o) -> { - bool[0] &= m.containsKey(s) && m.get(s).equals(o); + List>> conditionsList = new ArrayList<>(); + if (when.has("OR") && when.get("OR").isJsonArray()){ + for (JsonElement element : when.getAsJsonArray("OR")){ + if (element instanceof JsonObject conditionObject){ + Map conditions = conditionObject.entrySet().stream() + .filter(e -> e.getValue() instanceof JsonPrimitive primitive && primitive.isBoolean()) + .collect(Collectors.toMap(Entry::getKey, e -> e.getValue().getAsBoolean())); + conditionsList.add(m -> { + boolean[] bool = new boolean[1]; + bool[0] = true; + conditions.forEach((s, o) -> { + bool[0] &= m.containsKey(s) && m.get(s).equals(o); + }); + return bool[0]; + }); + } + } + } else { + Map conditions = when.asMap().entrySet().stream() + .filter(e -> e.getValue() instanceof JsonPrimitive primitive && primitive.isBoolean()) + .collect(Collectors.toMap(Entry::getKey, e -> e.getValue().getAsBoolean())); + conditionsList.add(m -> { + boolean[] bool = new boolean[1]; + bool[0] = true; + conditions.forEach((s, o) -> { + bool[0] &= m.containsKey(s) && m.get(s).equals(o); + }); + return bool[0]; }); - return bool[0]; + } + condition = m ->{ + if (conditionsList.isEmpty()) return true; + boolean test = conditionsList.get(0).test(m); + for (int i = 1; i < conditionsList.size(); i++) { + test |= conditionsList.get(i).test(m); + } + return test; }; } } diff --git a/src/main/resources/assets/bluepower/blockstates/gate_buffer.json b/src/main/resources/assets/bluepower/blockstates/gate_buffer.json index eb528dd0..b7b72168 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_buffer.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_buffer.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/buffer_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/buffer_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/buffer_gate/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/buffer_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/buffer_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/buffer_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/buffer_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/buffer_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/buffer_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/buffer_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/buffer_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/buffer_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/buffer_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/buffer_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/buffer_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/buffer_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/buffer_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/buffer_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/buffer_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/buffer_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/buffer_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/buffer_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/buffer_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/buffer_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/buffer_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/buffer_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/buffer_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_nand.json b/src/main/resources/assets/bluepower/blockstates/gate_nand.json index 2767b27c..09cca0c3 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_nand.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_nand.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nand_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nand_gate/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nand_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nand_gate/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/nand_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/nand_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/nand_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/nand_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/nand_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/nand_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/nand_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/nand_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/nand_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/nand_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/nand_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/nand_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/nand_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/nand_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/nand_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/nand_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/nand_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/nand_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/nand_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/nand_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/nand_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/nand_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/nand_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/nand_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_nor.json b/src/main/resources/assets/bluepower/blockstates/gate_nor.json index e5557c6a..2d58307e 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_nor.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_nor.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left_on","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/nor_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/nor_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/nor_gate/left","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/nor_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/nor_gate/left","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/nor_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/nor_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/nor_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/nor_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/nor_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/nor_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/nor_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/nor_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/nor_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/nor_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/nor_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/nor_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/nor_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/nor_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/nor_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/nor_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/nor_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/nor_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/nor_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/nor_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/nor_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/nor_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/nor_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/nor_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_not.json b/src/main/resources/assets/bluepower/blockstates/gate_not.json index 74793eb2..0634888c 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_not.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_not.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/not_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/not_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/not_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right_on","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/right","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/right","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/not_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/not_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/not_gate/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/not_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/not_gate/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/not_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/not_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/not_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/not_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/not_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/not_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/not_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/not_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/not_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/not_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/not_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/not_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/not_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/not_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/not_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/not_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/not_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/not_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/not_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/not_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/not_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/not_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/not_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/not_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_or.json b/src/main/resources/assets/bluepower/blockstates/gate_or.json index f4cc7898..10fae9e4 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_or.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_or.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/or_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left_on","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/or_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/or_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/or_gate/left","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/or_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/or_gate/left","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/or_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/or_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/or_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/or_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/or_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/or_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/or_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/or_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/or_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/or_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/or_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/or_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/or_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/or_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/or_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/or_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/or_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/or_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/or_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/or_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/or_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/or_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/or_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/or_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_rs.json b/src/main/resources/assets/bluepower/blockstates/gate_rs.json index abbbcccc..674bb128 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_rs.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_rs.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/rs_latch/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/rs_latch/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/rs_latch/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/rs_latch/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/rs_latch/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/rs_latch/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/rs_latch/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/rs_latch/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/rs_latch/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/rs_latch/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/rs_latch/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/rs_latch/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/rs_latch/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/rs_latch/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/rs_latch/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/rs_latch/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/rs_latch/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/rs_latch/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/rs_latch/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/rs_latch/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/rs_latch/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/rs_latch/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/rs_latch/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/rs_latch/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/rs_latch/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/rs_latch/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/rs_latch/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/rs_latch/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_toggle.json b/src/main/resources/assets/bluepower/blockstates/gate_toggle.json index 1a39de52..8d3e2a34 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_toggle.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_toggle.json @@ -1,220 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right","y":90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","y":180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right","y":270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/toggle_latch/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/toggle_latch/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/toggle_latch/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/toggle_latch/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/toggle_latch/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/toggle_latch/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/toggle_latch/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/toggle_latch/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/toggle_latch/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/toggle_latch/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/toggle_latch/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/toggle_latch/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/toggle_latch/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/toggle_latch/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/toggle_latch/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/toggle_latch/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/toggle_latch/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/toggle_latch/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/toggle_latch/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/toggle_latch/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/toggle_latch/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/toggle_latch/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/toggle_latch/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/toggle_latch/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/toggle_latch/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/toggle_latch/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/toggle_latch/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_xnor.json b/src/main/resources/assets/bluepower/blockstates/gate_xnor.json index 26534eae..c073142d 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_xnor.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_xnor.json @@ -1,252 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right"}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on"}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch"}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on"}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch"}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch"}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch"}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_torch"}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_torch"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right","y":90}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on", "y": 90}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 90}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 90}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","y":180}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on", "y": 180}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 180}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 180}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right","y":270}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch_on", "y": 270}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch_on", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 270}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_torch", "y": 270}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_torch", "y": 270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xnor_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xnor_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xnor_gate/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/xnor_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/xnor_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/xnor_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/xnor_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/xnor_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/xnor_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/xnor_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/xnor_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/xnor_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/xnor_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/xnor_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/xnor_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/xnor_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/xnor_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/xnor_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/xnor_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/xnor_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/xnor_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/xnor_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/xnor_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/xnor_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/xnor_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/xnor_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/xnor_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/blockstates/gate_xor.json b/src/main/resources/assets/bluepower/blockstates/gate_xor.json index d49598d3..7cf86615 100644 --- a/src/main/resources/assets/bluepower/blockstates/gate_xor.json +++ b/src/main/resources/assets/bluepower/blockstates/gate_xor.json @@ -1,252 +1,28 @@ { - "multipart": [ - {"when":{"facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank"}}, - {"when":{"powered_left":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on"}}, - {"when":{"powered_left":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left"}}, - {"when":{"powered_right":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on"}}, - {"when":{"powered_right":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right"}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch_on"}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch"}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch_on"}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch"}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch"}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch"}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_torch"}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_torch"}}, - {"when":{"powered_front":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on"}}, - {"when":{"powered_front":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front"}}, - {"when":{"powered_back":"true","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on"}}, - {"when":{"powered_back":"false","facing":"up","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back"}}, - {"when":{"facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank","y":90}}, - {"when":{"powered_left":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on","y":90}}, - {"when":{"powered_left":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left","y":90}}, - {"when":{"powered_right":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on","y":90}}, - {"when":{"powered_right":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right","y":90}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch_on", "y": 90}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch_on", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 90}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 90}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 90}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 90}}, - {"when":{"powered_front":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on","y":90}}, - {"when":{"powered_front":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front","y":90}}, - {"when":{"powered_back":"true","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on","y":90}}, - {"when":{"powered_back":"false","facing":"up","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back","y":90}}, - {"when":{"facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","y":180}}, - {"when":{"powered_left":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","y":180}}, - {"when":{"powered_left":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","y":180}}, - {"when":{"powered_right":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","y":180}}, - {"when":{"powered_right":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","y":180}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch_on", "y": 180}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch_on", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 180}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 180}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 180}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 180}}, - {"when":{"powered_front":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","y":180}}, - {"when":{"powered_front":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","y":180}}, - {"when":{"powered_back":"true","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","y":180}}, - {"when":{"powered_back":"false","facing":"up","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","y":180}}, - {"when":{"facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank","y":270}}, - {"when":{"powered_left":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on","y":270}}, - {"when":{"powered_left":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left","y":270}}, - {"when":{"powered_right":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on","y":270}}, - {"when":{"powered_right":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right","y":270}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch_on", "y": 270}}, - {"when":{"powered_left":"true", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch_on", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 270}}, - {"when":{"powered_left":"false", "powered_right": "false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 270}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_torch", "y": 270}}, - {"when":{"powered_left":"true", "powered_right": "true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_torch", "y": 270}}, - {"when":{"powered_front":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on","y":270}}, - {"when":{"powered_front":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front","y":270}}, - {"when":{"powered_back":"true","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on","y":270}}, - {"when":{"powered_back":"false","facing":"up","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back","y":270}}, - {"when":{"facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":0}}, - {"when":{"facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":90}}, - {"when":{"facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":180}}, - {"when":{"facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank","x":180,"y":270}}, - {"when":{"facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":0}}, - {"when":{"facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":0}}, - {"when":{"facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":180}}, - {"when":{"facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":-180}}, - {"when":{"facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":180}}, - {"when":{"facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":180}}, - {"when":{"facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":0}}, - {"when":{"facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":0}}, - {"when":{"facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":90}}, - {"when":{"facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":90}}, - {"when":{"facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":270}}, - {"when":{"facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":-90}}, - {"when":{"facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/blank","x":90,"y":270}}, - {"when":{"facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":90,"y":270}}, - {"when":{"facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/blank","x":270,"y":90}}, - {"when":{"facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/blank_z","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":0}}, - {"when":{"powered_left":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":90}}, - {"when":{"powered_left":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":180}}, - {"when":{"powered_left":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on","x":180,"y":270}}, - {"when":{"powered_left":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":0}}, - {"when":{"powered_left":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":180}}, - {"when":{"powered_left":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":-180}}, - {"when":{"powered_left":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":180}}, - {"when":{"powered_left":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":0}}, - {"when":{"powered_left":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":90}}, - {"when":{"powered_left":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":270}}, - {"when":{"powered_left":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":-90}}, - {"when":{"powered_left":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left_on","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":90,"y":270}}, - {"when":{"powered_left":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left_on","x":270,"y":90}}, - {"when":{"powered_left":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_on_z","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":0}}, - {"when":{"powered_left":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":90}}, - {"when":{"powered_left":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":180}}, - {"when":{"powered_left":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left","x":180,"y":270}}, - {"when":{"powered_left":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":0}}, - {"when":{"powered_left":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":180}}, - {"when":{"powered_left":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":-180}}, - {"when":{"powered_left":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":180}}, - {"when":{"powered_left":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":0}}, - {"when":{"powered_left":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":90}}, - {"when":{"powered_left":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":270}}, - {"when":{"powered_left":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":-90}}, - {"when":{"powered_left":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/left","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/left_z","x":90,"y":270}}, - {"when":{"powered_left":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/left","x":270,"y":90}}, - {"when":{"powered_left":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/left_z","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":0}}, - {"when":{"powered_right":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":90}}, - {"when":{"powered_right":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":180}}, - {"when":{"powered_right":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on","x":180,"y":270}}, - {"when":{"powered_right":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":0}}, - {"when":{"powered_right":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":180}}, - {"when":{"powered_right":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":-180}}, - {"when":{"powered_right":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":180}}, - {"when":{"powered_right":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":0}}, - {"when":{"powered_right":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":90}}, - {"when":{"powered_right":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":270}}, - {"when":{"powered_right":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":-90}}, - {"when":{"powered_right":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right_on","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":90,"y":270}}, - {"when":{"powered_right":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right_on","x":270,"y":90}}, - {"when":{"powered_right":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_on_z","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":0}}, - {"when":{"powered_right":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":90}}, - {"when":{"powered_right":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":180}}, - {"when":{"powered_right":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right","x":180,"y":270}}, - {"when":{"powered_right":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":0}}, - {"when":{"powered_right":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":180}}, - {"when":{"powered_right":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":-180}}, - {"when":{"powered_right":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":180}}, - {"when":{"powered_right":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":0}}, - {"when":{"powered_right":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":90}}, - {"when":{"powered_right":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":270}}, - {"when":{"powered_right":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":-90}}, - {"when":{"powered_right":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/right","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/right_z","x":90,"y":270}}, - {"when":{"powered_right":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/right","x":270,"y":90}}, - {"when":{"powered_right":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/right_z","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":0}}, - {"when":{"powered_front":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":90}}, - {"when":{"powered_front":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":180}}, - {"when":{"powered_front":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on","x":180,"y":270}}, - {"when":{"powered_front":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":0}}, - {"when":{"powered_front":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":180}}, - {"when":{"powered_front":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":-180}}, - {"when":{"powered_front":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":180}}, - {"when":{"powered_front":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":0}}, - {"when":{"powered_front":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":90}}, - {"when":{"powered_front":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":270}}, - {"when":{"powered_front":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":-90}}, - {"when":{"powered_front":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front_on","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":90,"y":270}}, - {"when":{"powered_front":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front_on","x":270,"y":90}}, - {"when":{"powered_front":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_on_z","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":0}}, - {"when":{"powered_front":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":90}}, - {"when":{"powered_front":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":180}}, - {"when":{"powered_front":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front","x":180,"y":270}}, - {"when":{"powered_front":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":0}}, - {"when":{"powered_front":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":180}}, - {"when":{"powered_front":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":-180}}, - {"when":{"powered_front":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":180}}, - {"when":{"powered_front":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":0}}, - {"when":{"powered_front":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":90}}, - {"when":{"powered_front":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":270}}, - {"when":{"powered_front":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":-90}}, - {"when":{"powered_front":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/front","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/front_z","x":90,"y":270}}, - {"when":{"powered_front":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/front","x":270,"y":90}}, - {"when":{"powered_front":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/front_z","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":0}}, - {"when":{"powered_back":"true","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":90}}, - {"when":{"powered_back":"true","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":180}}, - {"when":{"powered_back":"true","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on","x":180,"y":270}}, - {"when":{"powered_back":"true","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":0}}, - {"when":{"powered_back":"true","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":180}}, - {"when":{"powered_back":"true","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":-180}}, - {"when":{"powered_back":"true","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":180}}, - {"when":{"powered_back":"true","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":0}}, - {"when":{"powered_back":"true","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":90}}, - {"when":{"powered_back":"true","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":270}}, - {"when":{"powered_back":"true","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":-90}}, - {"when":{"powered_back":"true","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back_on","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":90,"y":270}}, - {"when":{"powered_back":"true","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back_on","x":270,"y":90}}, - {"when":{"powered_back":"true","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_on_z","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":0}}, - {"when":{"powered_back":"false","facing":"down","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":90}}, - {"when":{"powered_back":"false","facing":"down","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":180}}, - {"when":{"powered_back":"false","facing":"down","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back","x":180,"y":270}}, - {"when":{"powered_back":"false","facing":"north","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":0}}, - {"when":{"powered_back":"false","facing":"north","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":180}}, - {"when":{"powered_back":"false","facing":"north","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":-180}}, - {"when":{"powered_back":"false","facing":"south","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":180}}, - {"when":{"powered_back":"false","facing":"south","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"south","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":0}}, - {"when":{"powered_back":"false","facing":"east","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":90}}, - {"when":{"powered_back":"false","facing":"east","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":270}}, - {"when":{"powered_back":"false","facing":"east","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":-90}}, - {"when":{"powered_back":"false","facing":"west","rotation":0},"apply":{"model":"bluepower:block/xor_gate/back","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":1},"apply":{"model":"bluepower:block/xor_gate/back_z","x":90,"y":270}}, - {"when":{"powered_back":"false","facing":"west","rotation":2},"apply":{"model":"bluepower:block/xor_gate/back","x":270,"y":90}}, - {"when":{"powered_back":"false","facing":"west","rotation":3},"apply":{"model":"bluepower:block/xor_gate/back_z","x":270,"y":90}} - ] + "variants": { + "facing=up,rotation=0":{"model":"bluepower:block/xor_gate/full"}, + "facing=up,rotation=1":{"model":"bluepower:block/xor_gate/full","y":90}, + "facing=up,rotation=2":{"model":"bluepower:block/xor_gate/full","y":180}, + "facing=up,rotation=3":{"model":"bluepower:block/xor_gate/full","y":270}, + "facing=down,rotation=0":{"model":"bluepower:block/xor_gate/full","x":180,"y":0}, + "facing=down,rotation=3":{"model":"bluepower:block/xor_gate/full","x":180,"y":90}, + "facing=down,rotation=2":{"model":"bluepower:block/xor_gate/full","x":180,"y":180}, + "facing=down,rotation=1":{"model":"bluepower:block/xor_gate/full","x":180,"y":270}, + "facing=north,rotation=0":{"model":"bluepower:block/xor_gate/full","x":90,"y":0}, + "facing=north,rotation=1":{"model":"bluepower:block/xor_gate/full_z","x":90,"y":0}, + "facing=north,rotation=2":{"model":"bluepower:block/xor_gate/full","x":270,"y":180}, + "facing=north,rotation=3":{"model":"bluepower:block/xor_gate/full_z","x":270,"y":-180}, + "facing=south,rotation=0":{"model":"bluepower:block/xor_gate/full","x":90,"y":180}, + "facing=south,rotation=1":{"model":"bluepower:block/xor_gate/full_z","x":90,"y":180}, + "facing=south,rotation=2":{"model":"bluepower:block/xor_gate/full","x":270,"y":0}, + "facing=south,rotation=3":{"model":"bluepower:block/xor_gate/full_z","x":270,"y":0}, + "facing=east,rotation=0":{"model":"bluepower:block/xor_gate/full","x":90,"y":90}, + "facing=east,rotation=1":{"model":"bluepower:block/xor_gate/full_z","x":90,"y":90}, + "facing=east,rotation=2":{"model":"bluepower:block/xor_gate/full","x":270,"y":270}, + "facing=east,rotation=3":{"model":"bluepower:block/xor_gate/full_z","x":270,"y":-90}, + "facing=west,rotation=0":{"model":"bluepower:block/xor_gate/full","x":90,"y":270}, + "facing=west,rotation=1":{"model":"bluepower:block/xor_gate/full_z","x":90,"y":270}, + "facing=west,rotation=2":{"model":"bluepower:block/xor_gate/full","x":270,"y":90}, + "facing=west,rotation=3":{"model":"bluepower:block/xor_gate/full_z","x":270,"y":90} + } } \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json index ec5a0c07..259b69c4 100644 --- a/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json +++ b/src/main/resources/assets/bluepower/models/block/and_gate/full_z.json @@ -1,9 +1,7 @@ { "loader": "bluepower:gate", "models": [ - { - "model": "bluepower:block/and_gate/blank_z" - }, + "bluepower:block/and_gate/blank_z", { "model": "bluepower:block/and_gate/back_z", "when": { diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/full.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/full.json new file mode 100644 index 00000000..7a2e4b31 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/buffer_gate/blank", + { + "model": "bluepower:block/buffer_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/buffer_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/buffer_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/buffer_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/buffer_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/buffer_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/buffer_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/buffer_gate/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/buffer_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/buffer_gate/full_z.json new file mode 100644 index 00000000..aef7413e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/buffer_gate/full_z.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/buffer_gate/blank_z", + { + "model": "bluepower:block/buffer_gate/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/buffer_gate/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/buffer_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/buffer_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/buffer_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/buffer_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/buffer_gate/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/buffer_gate/right_on_z", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nand_gate/full.json b/src/main/resources/assets/bluepower/models/block/nand_gate/full.json new file mode 100644 index 00000000..0d38ea5a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/nand_gate/blank", + { + "model": "bluepower:block/nand_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/nand_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/nand_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/nand_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/nand_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/nand_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/nand_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/nand_gate/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nand_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/nand_gate/full_z.json new file mode 100644 index 00000000..644c5dc5 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nand_gate/full_z.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/nand_gate/blank_z", + { + "model": "bluepower:block/nand_gate/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/nand_gate/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/nand_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/nand_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/nand_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/nand_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/nand_gate/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/nand_gate/right_on_z", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/full.json b/src/main/resources/assets/bluepower/models/block/nor_gate/full.json new file mode 100644 index 00000000..f8e93925 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/nor_gate/blank", + { + "model": "bluepower:block/nor_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/nor_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/nor_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/nor_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/nor_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/nor_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/nor_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/nor_gate/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/nor_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/nor_gate/full_z.json new file mode 100644 index 00000000..2d7e06e6 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/nor_gate/full_z.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/nor_gate/blank_z", + { + "model": "bluepower:block/nor_gate/left", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/nor_gate/left_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/nor_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/nor_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/nor_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/nor_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/nor_gate/back", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/nor_gate/back_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/not_gate/full.json b/src/main/resources/assets/bluepower/models/block/not_gate/full.json new file mode 100644 index 00000000..c1a5e310 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/not_gate/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/not_gate/blank", + { + "model": "bluepower:block/not_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/not_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/not_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/not_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/not_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/not_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/not_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/not_gate/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/not_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/not_gate/full_z.json new file mode 100644 index 00000000..b7de6bdd --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/not_gate/full_z.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/not_gate/blank_z", + { + "model": "bluepower:block/not_gate/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/not_gate/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/not_gate/right", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/not_gate/right_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/not_gate/front", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/not_gate/front_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/not_gate/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/not_gate/right_on_z", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/full.json b/src/main/resources/assets/bluepower/models/block/or_gate/full.json new file mode 100644 index 00000000..74482730 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/or_gate/blank", + { + "model": "bluepower:block/or_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/or_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/or_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/or_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/or_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/or_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/or_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/or_gate/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/or_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/or_gate/full_z.json new file mode 100644 index 00000000..3311c384 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/or_gate/full_z.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/or_gate/blank_z", + { + "model": "bluepower:block/or_gate/left", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/or_gate/left_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/or_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/or_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/or_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/or_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/or_gate/back", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/or_gate/back_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/full.json b/src/main/resources/assets/bluepower/models/block/rs_latch/full.json new file mode 100644 index 00000000..4ed0aac6 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/full.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/rs_latch/blank", + { + "model": "bluepower:block/rs_latch/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/rs_latch/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/rs_latch/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/rs_latch/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/rs_latch/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/rs_latch/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/rs_latch/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/rs_latch/right_on", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/rs_latch/full_z.json b/src/main/resources/assets/bluepower/models/block/rs_latch/full_z.json new file mode 100644 index 00000000..70a3223a --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/rs_latch/full_z.json @@ -0,0 +1,55 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/rs_latch/blank_z", + { + "model": "bluepower:block/rs_latch/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/rs_latch/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/rs_latch/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/rs_latch/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/rs_latch/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/rs_latch/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/rs_latch/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/rs_latch/right_on_z", + "when": { + "powered_right": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/full.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/full.json new file mode 100644 index 00000000..afc6c835 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/full.json @@ -0,0 +1,69 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/toggle_latch/blank", + { + "model": "bluepower:block/toggle_latch/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/toggle_latch/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/toggle_latch/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/toggle_latch/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/toggle_latch/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/toggle_latch/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/toggle_latch/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/toggle_latch/right_on", + "when": { + "powered_right": true + } + }, + { + "model": "bluepower:block/toggle_latch/lever_front", + "when": { + "powered_front": true, + "powered_back": false + } + }, + { + "model": "bluepower:block/toggle_latch/lever_back", + "when": { + "powered_front": false, + "powered_back": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/toggle_latch/full_z.json b/src/main/resources/assets/bluepower/models/block/toggle_latch/full_z.json new file mode 100644 index 00000000..4e65f18d --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/toggle_latch/full_z.json @@ -0,0 +1,69 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/toggle_latch/blank_z", + { + "model": "bluepower:block/toggle_latch/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/toggle_latch/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/toggle_latch/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/toggle_latch/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/toggle_latch/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/toggle_latch/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/toggle_latch/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/toggle_latch/right_on_z", + "when": { + "powered_right": true + } + }, + { + "model": "bluepower:block/toggle_latch/lever_front_z", + "when": { + "powered_front": true, + "powered_back": false + } + }, + { + "model": "bluepower:block/toggle_latch/lever_back_z", + "when": { + "powered_front": false, + "powered_back": true + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/full.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/full.json new file mode 100644 index 00000000..8bc445c8 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/full.json @@ -0,0 +1,107 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/xnor_gate/blank", + { + "model": "bluepower:block/xnor_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/xnor_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/xnor_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/xnor_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/xnor_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/xnor_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/xnor_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/xnor_gate/right_on", + "when": { + "powered_right": true + } + }, + { + "model": "bluepower:block/xnor_gate/left_torch", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": true, + "powered_right": false + } + ] + } + }, + { + "model": "bluepower:block/xnor_gate/left_torch_on", + "when": { + "powered_left": false, + "powered_right": true + } + }, + { + "model": "bluepower:block/xnor_gate/right_torch", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": false, + "powered_right": true + } + ] + } + }, + { + "model": "bluepower:block/xnor_gate/right_torch_on", + "when": { + "powered_left": true, + "powered_right": false + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xnor_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/xnor_gate/full_z.json new file mode 100644 index 00000000..97689a9e --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xnor_gate/full_z.json @@ -0,0 +1,107 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/xnor_gate/blank_z", + { + "model": "bluepower:block/xnor_gate/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/xnor_gate/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/xnor_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/xnor_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/xnor_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/xnor_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/xnor_gate/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/xnor_gate/right_on_z", + "when": { + "powered_right": true + } + }, + { + "model": "bluepower:block/xnor_gate/left_torch_z", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": true, + "powered_right": false + } + ] + } + }, + { + "model": "bluepower:block/xnor_gate/left_torch_on_Z", + "when": { + "powered_left": false, + "powered_right": true + } + }, + { + "model": "bluepower:block/xnor_gate/right_torch_z", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": false, + "powered_right": true + } + ] + } + }, + { + "model": "bluepower:block/xnor_gate/right_torch_on_z", + "when": { + "powered_left": true, + "powered_right": false + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/full.json b/src/main/resources/assets/bluepower/models/block/xor_gate/full.json new file mode 100644 index 00000000..41779024 --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/full.json @@ -0,0 +1,107 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/xor_gate/blank", + { + "model": "bluepower:block/xor_gate/back", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/xor_gate/back_on", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/xor_gate/front", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/xor_gate/front_on", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/xor_gate/left", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/xor_gate/left_on", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/xor_gate/right", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/xor_gate/right_on", + "when": { + "powered_right": true + } + }, + { + "model": "bluepower:block/xor_gate/left_torch", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": true, + "powered_right": false + } + ] + } + }, + { + "model": "bluepower:block/xor_gate/left_torch_on", + "when": { + "powered_left": false, + "powered_right": true + } + }, + { + "model": "bluepower:block/xor_gate/right_torch", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": false, + "powered_right": true + } + ] + } + }, + { + "model": "bluepower:block/xor_gate/right_torch_on", + "when": { + "powered_left": true, + "powered_right": false + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file diff --git a/src/main/resources/assets/bluepower/models/block/xor_gate/full_z.json b/src/main/resources/assets/bluepower/models/block/xor_gate/full_z.json new file mode 100644 index 00000000..e318f7cf --- /dev/null +++ b/src/main/resources/assets/bluepower/models/block/xor_gate/full_z.json @@ -0,0 +1,107 @@ +{ + "loader": "bluepower:gate", + "models": [ + "bluepower:block/xor_gate/blank_z", + { + "model": "bluepower:block/xor_gate/back_z", + "when": { + "powered_back": false + } + }, + { + "model": "bluepower:block/xor_gate/back_on_z", + "when": { + "powered_back": true + } + }, + { + "model": "bluepower:block/xor_gate/front_z", + "when": { + "powered_front": false + } + }, + { + "model": "bluepower:block/xor_gate/front_on_z", + "when": { + "powered_front": true + } + }, + { + "model": "bluepower:block/xor_gate/left_z", + "when": { + "powered_left": false + } + }, + { + "model": "bluepower:block/xor_gate/left_on_z", + "when": { + "powered_left": true + } + }, + { + "model": "bluepower:block/xor_gate/right_z", + "when": { + "powered_right": false + } + }, + { + "model": "bluepower:block/xor_gate/right_on_z", + "when": { + "powered_right": true + } + }, + { + "model": "bluepower:block/xor_gate/left_torch_z", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": true, + "powered_right": false + } + ] + } + }, + { + "model": "bluepower:block/xor_gate/left_torch_on_Z", + "when": { + "powered_left": false, + "powered_right": true + } + }, + { + "model": "bluepower:block/xor_gate/right_torch_z", + "when": { + "OR": [ + { + "powered_left": true, + "powered_right": true + }, + { + "powered_left": false, + "powered_right": false + }, + { + "powered_left": false, + "powered_right": true + } + ] + } + }, + { + "model": "bluepower:block/xor_gate/right_torch_on_z", + "when": { + "powered_left": true, + "powered_right": false + } + } + ], + "particle": "bluepower:blocks/gates/gate" +} \ No newline at end of file From ed45eddf59956de47292c2778f1264e1e1e1a92a Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 22:36:46 -0500 Subject: [PATCH 21/25] reenabled recipes for new gates --- .../bluepower/recipes/{gate_buffer.jsonx => gate_buffer.json} | 0 .../data/bluepower/recipes/{gate_nor.jsonx => gate_nor.json} | 0 .../data/bluepower/recipes/{gate_not.jsonx => gate_not.json} | 0 .../data/bluepower/recipes/{gate_or.jsonx => gate_or.json} | 0 .../bluepower/recipes/{gate_rs_latch.jsonx => gate_rs_latch.json} | 0 .../recipes/{gate_toggle_latch.jsonx => gate_toggle_latch.json} | 0 .../data/bluepower/recipes/{gate_xnor.jsonx => gate_xnor.json} | 0 .../data/bluepower/recipes/{gate_xor.jsonx => gate_xor.json} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename src/main/resources/data/bluepower/recipes/{gate_buffer.jsonx => gate_buffer.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_nor.jsonx => gate_nor.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_not.jsonx => gate_not.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_or.jsonx => gate_or.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_rs_latch.jsonx => gate_rs_latch.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_toggle_latch.jsonx => gate_toggle_latch.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_xnor.jsonx => gate_xnor.json} (100%) rename src/main/resources/data/bluepower/recipes/{gate_xor.jsonx => gate_xor.json} (100%) diff --git a/src/main/resources/data/bluepower/recipes/gate_buffer.jsonx b/src/main/resources/data/bluepower/recipes/gate_buffer.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_buffer.jsonx rename to src/main/resources/data/bluepower/recipes/gate_buffer.json diff --git a/src/main/resources/data/bluepower/recipes/gate_nor.jsonx b/src/main/resources/data/bluepower/recipes/gate_nor.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_nor.jsonx rename to src/main/resources/data/bluepower/recipes/gate_nor.json diff --git a/src/main/resources/data/bluepower/recipes/gate_not.jsonx b/src/main/resources/data/bluepower/recipes/gate_not.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_not.jsonx rename to src/main/resources/data/bluepower/recipes/gate_not.json diff --git a/src/main/resources/data/bluepower/recipes/gate_or.jsonx b/src/main/resources/data/bluepower/recipes/gate_or.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_or.jsonx rename to src/main/resources/data/bluepower/recipes/gate_or.json diff --git a/src/main/resources/data/bluepower/recipes/gate_rs_latch.jsonx b/src/main/resources/data/bluepower/recipes/gate_rs_latch.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_rs_latch.jsonx rename to src/main/resources/data/bluepower/recipes/gate_rs_latch.json diff --git a/src/main/resources/data/bluepower/recipes/gate_toggle_latch.jsonx b/src/main/resources/data/bluepower/recipes/gate_toggle_latch.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_toggle_latch.jsonx rename to src/main/resources/data/bluepower/recipes/gate_toggle_latch.json diff --git a/src/main/resources/data/bluepower/recipes/gate_xnor.jsonx b/src/main/resources/data/bluepower/recipes/gate_xnor.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_xnor.jsonx rename to src/main/resources/data/bluepower/recipes/gate_xnor.json diff --git a/src/main/resources/data/bluepower/recipes/gate_xor.jsonx b/src/main/resources/data/bluepower/recipes/gate_xor.json similarity index 100% rename from src/main/resources/data/bluepower/recipes/gate_xor.jsonx rename to src/main/resources/data/bluepower/recipes/gate_xor.json From c1fe872fa167a89c4b1c744727f92892300255b1 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:31:27 -0500 Subject: [PATCH 22/25] made getSidePower use SignalGetter instead of BlockGetter --- .../block/gates/BlockGateAnd.java | 26 +++++-------- .../block/gates/BlockGateBase.java | 24 +++++++++++- .../block/gates/BlockGateNot.java | 10 ++--- .../block/gates/BlockGateRSLatch.java | 18 +++------ .../block/gates/BlockGateToggleLatch.java | 38 +++++++++++++------ .../block/gates/BlockGateXor.java | 3 +- .../block/gates/BlockNullCell.java | 11 +++--- 7 files changed, 75 insertions(+), 55 deletions(-) diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java index 2b30354a..ab6ae731 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateAnd.java @@ -4,6 +4,7 @@ import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.RedStoneWireBlock; import net.minecraft.world.level.block.state.BlockState; @@ -22,24 +23,15 @@ protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blo return side == Side.FRONT; } - public Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos){ + @Override + public Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos){ Map map = new HashMap<>(); - Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); - Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; - Direction side_right = side_left.getOpposite(); - Direction side_back = dirs[state.getValue(ROTATION)]; - BlockPos pos_left = pos.relative(side_left); - BlockPos pos_right = pos.relative(side_right); - BlockPos pos_back = pos.relative(side_back); - BlockState state_left = worldIn.getBlockState(pos_left); - BlockState state_right = worldIn.getBlockState(pos_right); - BlockState state_back = worldIn.getBlockState(pos_back); - byte left = (byte) state_left.getSignal(worldIn, pos_left, side_right); - byte right = (byte) state_right.getSignal(worldIn, pos_right, side_left); - byte back = (byte) state_back.getSignal(worldIn, pos_back, side_back.getOpposite()); - if(state_left.getBlock() instanceof RedStoneWireBlock){left = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} - if(state_right.getBlock() instanceof RedStoneWireBlock){right = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} - if(state_back.getBlock() instanceof RedStoneWireBlock){back = state_back.getValue(RedStoneWireBlock.POWER).byteValue();} + Direction sideLeft = toDirection(Side.LEFT, state); + Direction sideRight = toDirection(Side.RIGHT, state); + Direction sideBack = toDirection(Side.BACK, state); + byte left = (byte) worldIn.getSignal(pos.relative(sideLeft), sideLeft); + byte right = (byte) worldIn.getSignal(pos.relative(sideRight), sideRight); + byte back = (byte) worldIn.getSignal(pos.relative(sideBack), sideBack); map.put(Side.LEFT, left); map.put(Side.RIGHT, right); map.put(Side.BACK, back); diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java index bd1bbdc1..6aead2de 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java @@ -19,6 +19,7 @@ import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; import net.minecraft.world.level.LevelAccessor; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.RedStoneWireBlock; import net.minecraft.world.level.block.Rotation; @@ -153,6 +154,27 @@ public int getDirectSignal(BlockState blockState, BlockGetter blockAccess, Block return 0; } + private int redstoneFromSide(Side side, BlockState state){ + return switch (side){ + case FRONT -> state.getValue(POWERED_FRONT) ? 16 : 0; + case BACK -> state.getValue(POWERED_BACK) ? 16 : 0; + case LEFT -> state.getValue(POWERED_LEFT) ? 16 : 0; + case RIGHT -> state.getValue(POWERED_RIGHT) ? 16 : 0; + }; + } + + protected Direction toDirection(Side side, BlockState state){ + Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); + Direction left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; + Direction back = dirs[state.getValue(ROTATION)]; + return switch (side){ + case FRONT -> back.getOpposite(); + case BACK -> back; + case LEFT -> left; + case RIGHT -> left.getOpposite(); + }; + } + protected Side fromDirection(Direction direction, int rotation, Direction[] array){ Direction sideLeft = array[rotation == 3 ? 0 : rotation + 1]; Direction sideRight = sideLeft.getOpposite(); @@ -165,7 +187,7 @@ protected Side fromDirection(Direction direction, int rotation, Direction[] arra return null; } - protected abstract Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos); + protected abstract Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos); protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blockAccess, BlockPos pos){ return false; diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java index 7870a530..c2cc08e0 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateNot.java @@ -4,6 +4,7 @@ import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.RedStoneWireBlock; import net.minecraft.world.level.block.state.BlockState; @@ -12,14 +13,9 @@ public class BlockGateNot extends BlockGateBase{ @Override - protected Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos) { + protected Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos) { Map map = new HashMap<>(); - Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); - Direction sideBack = dirs[state.getValue(ROTATION)]; - BlockPos posBack = pos.relative(sideBack); - BlockState stateBack = worldIn.getBlockState(posBack); - byte back = (byte) stateBack.getSignal(worldIn, posBack, sideBack.getOpposite()); - if(stateBack.getBlock() instanceof RedStoneWireBlock){back = stateBack.getValue(RedStoneWireBlock.POWER).byteValue();} + byte back = (byte) worldIn.getSignal(pos.relative(toDirection(Side.BACK, state)), toDirection(Side.BACK, state)); byte output = getOutput(back); map.put(Side.FRONT, output); map.put(Side.LEFT, output); diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java b/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java index 5c2869cc..ccc4351a 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateRSLatch.java @@ -5,6 +5,7 @@ import net.minecraft.core.Direction; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.RedStoneWireBlock; import net.minecraft.world.level.block.state.BlockState; import org.jetbrains.annotations.Nullable; @@ -13,18 +14,11 @@ public class BlockGateRSLatch extends BlockGateBase{ @Override - protected Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos) { - Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); - Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; - Direction side_right = side_left.getOpposite(); - BlockPos pos_left = pos.relative(side_left); - BlockPos pos_right = pos.relative(side_right); - BlockState state_left = worldIn.getBlockState(pos_left); - BlockState state_right = worldIn.getBlockState(pos_right); - byte leftIn = (byte) state_left.getSignal(worldIn, pos_left, side_right); - byte rightIn = (byte) state_right.getSignal(worldIn, pos_right, side_left); - if(state_left.getBlock() instanceof RedStoneWireBlock){leftIn = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} - if(state_right.getBlock() instanceof RedStoneWireBlock){rightIn = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} + protected Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos) { + Direction sideLeft = toDirection(Side.LEFT, state); + Direction sideRight = toDirection(Side.RIGHT, state); + byte leftIn = (byte) worldIn.getSignal(pos.relative(sideLeft), sideLeft); + byte rightIn = (byte) worldIn.getSignal(pos.relative(sideRight), sideRight); boolean frontPowered = state.getValue(POWERED_FRONT); boolean backPowered = state.getValue(POWERED_BACK); if (!frontPowered && !backPowered ){ diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java b/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java index c495b9f1..3493bc4d 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateToggleLatch.java @@ -3,28 +3,29 @@ import com.bluepowermod.helper.DirectionHelper; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; +import net.minecraft.sounds.SoundEvents; +import net.minecraft.sounds.SoundSource; +import net.minecraft.world.InteractionHand; +import net.minecraft.world.InteractionResult; +import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.context.BlockPlaceContext; import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.Level; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.RedStoneWireBlock; import net.minecraft.world.level.block.state.BlockState; +import net.minecraft.world.phys.BlockHitResult; import org.jetbrains.annotations.Nullable; import java.util.Map; public class BlockGateToggleLatch extends BlockGateBase{ @Override - protected Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos) { - Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); - Direction side_left = dirs[state.getValue(ROTATION) == 3 ? 0 : state.getValue(ROTATION) + 1]; - Direction side_right = side_left.getOpposite(); - BlockPos pos_left = pos.relative(side_left); - BlockPos pos_right = pos.relative(side_right); - BlockState state_left = worldIn.getBlockState(pos_left); - BlockState state_right = worldIn.getBlockState(pos_right); - byte leftIn = (byte) state_left.getSignal(worldIn, pos_left, side_right); - byte rightIn = (byte) state_right.getSignal(worldIn, pos_right, side_left); - if(state_left.getBlock() instanceof RedStoneWireBlock){leftIn = state_left.getValue(RedStoneWireBlock.POWER).byteValue();} - if(state_right.getBlock() instanceof RedStoneWireBlock){rightIn = state_right.getValue(RedStoneWireBlock.POWER).byteValue();} + protected Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos) { + Direction sideLeft = toDirection(Side.LEFT, state); + Direction sideRight = toDirection(Side.RIGHT, state); + byte leftIn = (byte) worldIn.getSignal(pos.relative(sideLeft), sideLeft); + byte rightIn = (byte) worldIn.getSignal(pos.relative(sideRight), sideRight); boolean frontPowered = state.getValue(POWERED_FRONT); boolean backPowered = state.getValue(POWERED_BACK); boolean leftPowered = state.getValue(POWERED_LEFT); @@ -55,4 +56,17 @@ protected boolean isSideSource(Side side, BlockState blockState, BlockGetter blo public @Nullable BlockState getStateForPlacement(BlockPlaceContext context) { return super.getStateForPlacement(context).setValue(POWERED_FRONT, true); } + + @Override + public InteractionResult use(BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit) { + state = state.setValue(POWERED_FRONT, !state.getValue(POWERED_FRONT)).setValue(POWERED_BACK, !state.getValue(POWERED_BACK)); + level.setBlockAndUpdate(pos, state); + for (Direction dir : DirectionHelper.ArrayFromDirection(state.getValue(FACING))){ + BlockPos neighbor = pos.relative(dir); + BlockState neighborState = level.getBlockState(neighbor); + level.updateNeighborsAtExceptFromFacing(neighbor, neighborState.getBlock(), dir.getOpposite()); + } + level.playSound(null, pos, SoundEvents.LEVER_CLICK, SoundSource.BLOCKS, 0.3F, 0.5F); + return InteractionResult.sidedSuccess(level.isClientSide); + } } diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java b/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java index fce8619d..81ec64bb 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateXor.java @@ -4,6 +4,7 @@ import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.world.level.BlockGetter; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.RedStoneWireBlock; import net.minecraft.world.level.block.state.BlockState; import org.jetbrains.annotations.Nullable; @@ -17,7 +18,7 @@ public BlockGateXor(boolean inverted) { } @Override - public Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos){ + public Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos){ Map map = super.getSidePower(worldIn, state, pos); boolean powered_back = map.get(Side.LEFT) == 0 && map.get(Side.RIGHT) == 0; map.put(Side.BACK, (byte) (powered_back ? 16 : 0)); diff --git a/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java b/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java index b46ccc1a..a4c990e2 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockNullCell.java @@ -12,6 +12,7 @@ import net.minecraft.core.Direction; import net.minecraft.world.level.BlockGetter; import net.minecraft.world.level.Level; +import net.minecraft.world.level.SignalGetter; import net.minecraft.world.level.block.state.BlockState; import java.util.HashMap; @@ -33,7 +34,7 @@ enum Modes { CROSSED } - public Map getSidePower(BlockGetter worldIn, BlockState state, BlockPos pos){ + public Map getSidePower(SignalGetter worldIn, BlockState state, BlockPos pos){ Map map = new HashMap<>(); Direction[] dirs = DirectionHelper.ArrayFromDirection(state.getValue(FACING)); @@ -49,10 +50,10 @@ public Map getSidePower(BlockGetter worldIn, BlockState state, Block shouldSignal = false; - byte left = state.getValue(POWERED_LEFT) ? 0 : (byte) ((Level)worldIn).getSignal(pos_left, side_right); - byte right = state.getValue(POWERED_RIGHT) ? 0 : (byte) ((Level)worldIn).getSignal(pos_right, side_left); - byte back = state.getValue(POWERED_BACK) ? 0 : (byte) ((Level)worldIn).getSignal(pos_back, side_front); - byte front = state.getValue(POWERED_FRONT) ? 0 : (byte) ((Level)worldIn).getSignal(pos_front, side_back); + byte left = state.getValue(POWERED_LEFT) ? 0 : (byte) worldIn.getSignal(pos_left, side_right); + byte right = state.getValue(POWERED_RIGHT) ? 0 : (byte) worldIn.getSignal(pos_right, side_left); + byte back = state.getValue(POWERED_BACK) ? 0 : (byte) worldIn.getSignal(pos_back, side_front); + byte front = state.getValue(POWERED_FRONT) ? 0 : (byte) worldIn.getSignal(pos_front, side_back); shouldSignal = true; From 6ff3cca24c42cb93a6e3300f13b58d35b1aa5112 Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Sun, 22 Feb 2026 23:32:21 -0500 Subject: [PATCH 23/25] made BlockGateBase just output redstone based off whether that side is on --- .../java/com/bluepowermod/block/gates/BlockGateBase.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java index 6aead2de..2584dc0c 100644 --- a/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java +++ b/src/main/java/com/bluepowermod/block/gates/BlockGateBase.java @@ -136,9 +136,8 @@ public void setPlacedBy(Level world, BlockPos pos, BlockState state, @Nullable L public int getSignal(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side){ Direction[] dirs = DirectionHelper.ArrayFromDirection(blockState.getValue(FACING)); Side side1 = fromDirection(side.getOpposite(), blockState.getValue(ROTATION), dirs); - Map map = getSidePower(blockAccess, blockState, pos); if (isSideSource(side1, blockState, blockAccess, pos)){ - return map.get(side1); + return redstoneFromSide(side1, blockState); } return 0; } @@ -147,9 +146,8 @@ public int getSignal(BlockState blockState, BlockGetter blockAccess, BlockPos po public int getDirectSignal(BlockState blockState, BlockGetter blockAccess, BlockPos pos, Direction side) { Direction[] dirs = DirectionHelper.ArrayFromDirection(blockState.getValue(FACING)); Side side1 = fromDirection(side.getOpposite(), blockState.getValue(ROTATION), dirs); - Map map = getSidePower(blockAccess, blockState, pos); if (isSideSource(side1, blockState, blockAccess, pos)){ - return map.get(side1); + return redstoneFromSide(side1, blockState); } return 0; } From 112d9e9911167428cda9baa7d18c5e3d9490283a Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:46:09 -0500 Subject: [PATCH 24/25] made IGateCondition use Object instead of Boolean so that other properties can be matched as well --- .../client/render/GateBakedModel.java | 2 +- .../client/render/GateModelLoader.java | 21 ++++++++++++------- .../client/render/IGateCondition.java | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/bluepowermod/client/render/GateBakedModel.java b/src/main/java/com/bluepowermod/client/render/GateBakedModel.java index 3ea4c13d..eddb3f48 100644 --- a/src/main/java/com/bluepowermod/client/render/GateBakedModel.java +++ b/src/main/java/com/bluepowermod/client/render/GateBakedModel.java @@ -37,7 +37,7 @@ public List getQuads(@Nullable BlockState blockState, @Nullable Direc @Override public @NotNull List getQuads(@Nullable BlockState state, @Nullable Direction side, @NotNull RandomSource rand, @NotNull ModelData data, @Nullable RenderType renderType) { List quads = new ArrayList<>(); - Map redstoneStates = new HashMap<>(); + Map redstoneStates = new HashMap<>(); redstoneStates.put("powered_back", state.getValue(BlockGateBase.POWERED_BACK)); redstoneStates.put("powered_front", state.getValue(BlockGateBase.POWERED_FRONT)); redstoneStates.put("powered_left", state.getValue(BlockGateBase.POWERED_LEFT)); diff --git a/src/main/java/com/bluepowermod/client/render/GateModelLoader.java b/src/main/java/com/bluepowermod/client/render/GateModelLoader.java index a40dee94..32030f01 100644 --- a/src/main/java/com/bluepowermod/client/render/GateModelLoader.java +++ b/src/main/java/com/bluepowermod/client/render/GateModelLoader.java @@ -19,6 +19,7 @@ import java.util.List; import java.util.Map; import java.util.Map.Entry; +import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.Collectors; @@ -36,14 +37,20 @@ public GateModel read(JsonObject jsonObject, JsonDeserializationContext jsonDese } else if (model instanceof JsonObject object) { modelName = object.getAsJsonPrimitive("model").getAsString(); if (object.has("when")){ + Function mappingFunction = j -> { + if (j.isBoolean()) return j.getAsBoolean(); + if (j.isNumber()) return j.getAsNumber(); + if (j.isString()) return j.getAsString(); + throw new JsonParseException("When condition must be a string, a number, or a boolean: " + j); + }; JsonObject when = object.getAsJsonObject("when"); - List>> conditionsList = new ArrayList<>(); + List>> conditionsList = new ArrayList<>(); if (when.has("OR") && when.get("OR").isJsonArray()){ for (JsonElement element : when.getAsJsonArray("OR")){ if (element instanceof JsonObject conditionObject){ - Map conditions = conditionObject.entrySet().stream() - .filter(e -> e.getValue() instanceof JsonPrimitive primitive && primitive.isBoolean()) - .collect(Collectors.toMap(Entry::getKey, e -> e.getValue().getAsBoolean())); + Map conditions = conditionObject.entrySet().stream() + .filter(e -> e.getValue() instanceof JsonPrimitive) + .collect(Collectors.toMap(Entry::getKey, e -> mappingFunction.apply(e.getValue().getAsJsonPrimitive()))); conditionsList.add(m -> { boolean[] bool = new boolean[1]; bool[0] = true; @@ -55,9 +62,9 @@ public GateModel read(JsonObject jsonObject, JsonDeserializationContext jsonDese } } } else { - Map conditions = when.asMap().entrySet().stream() - .filter(e -> e.getValue() instanceof JsonPrimitive primitive && primitive.isBoolean()) - .collect(Collectors.toMap(Entry::getKey, e -> e.getValue().getAsBoolean())); + Map conditions = when.asMap().entrySet().stream() + .filter(e -> e.getValue() instanceof JsonPrimitive) + .collect(Collectors.toMap(Entry::getKey, e -> mappingFunction.apply(e.getValue().getAsJsonPrimitive()))); conditionsList.add(m -> { boolean[] bool = new boolean[1]; bool[0] = true; diff --git a/src/main/java/com/bluepowermod/client/render/IGateCondition.java b/src/main/java/com/bluepowermod/client/render/IGateCondition.java index c8a9deb6..7cc1a5be 100644 --- a/src/main/java/com/bluepowermod/client/render/IGateCondition.java +++ b/src/main/java/com/bluepowermod/client/render/IGateCondition.java @@ -5,5 +5,5 @@ @FunctionalInterface public interface IGateCondition { IGateCondition ALWAYS_TRUE = m -> true; - boolean test(Map map); + boolean test(Map map); } From 462008a1651c7521f7b09c10a80351c529e636ab Mon Sep 17 00:00:00 2001 From: trinsdar <30245301+Trinsdar@users.noreply.github.com> Date: Mon, 23 Feb 2026 17:52:18 -0500 Subject: [PATCH 25/25] fixed recipes of new gates --- src/main/resources/data/bluepower/recipes/gate_buffer.json | 2 +- src/main/resources/data/bluepower/recipes/gate_nor.json | 2 +- src/main/resources/data/bluepower/recipes/gate_not.json | 2 +- src/main/resources/data/bluepower/recipes/gate_or.json | 2 +- src/main/resources/data/bluepower/recipes/gate_rs_latch.json | 2 +- .../resources/data/bluepower/recipes/gate_toggle_latch.json | 2 +- src/main/resources/data/bluepower/recipes/gate_xnor.json | 5 +---- src/main/resources/data/bluepower/recipes/gate_xor.json | 5 +---- 8 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/main/resources/data/bluepower/recipes/gate_buffer.json b/src/main/resources/data/bluepower/recipes/gate_buffer.json index a1f9041c..d4ddfcca 100644 --- a/src/main/resources/data/bluepower/recipes/gate_buffer.json +++ b/src/main/resources/data/bluepower/recipes/gate_buffer.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:buffer_gate" + "item": "bluepower:gate_buffer" }, "pattern": [ "ACA", diff --git a/src/main/resources/data/bluepower/recipes/gate_nor.json b/src/main/resources/data/bluepower/recipes/gate_nor.json index 1903c0e2..b129203e 100644 --- a/src/main/resources/data/bluepower/recipes/gate_nor.json +++ b/src/main/resources/data/bluepower/recipes/gate_nor.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:nor_gate" + "item": "bluepower:gate_nor" }, "pattern": [ "TAT", diff --git a/src/main/resources/data/bluepower/recipes/gate_not.json b/src/main/resources/data/bluepower/recipes/gate_not.json index 795d4ad6..2a1f37b0 100644 --- a/src/main/resources/data/bluepower/recipes/gate_not.json +++ b/src/main/resources/data/bluepower/recipes/gate_not.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:not_gate" + "item": "bluepower:gate_not" }, "pattern": [ "TAT", diff --git a/src/main/resources/data/bluepower/recipes/gate_or.json b/src/main/resources/data/bluepower/recipes/gate_or.json index 9fb5d944..ec8ebe63 100644 --- a/src/main/resources/data/bluepower/recipes/gate_or.json +++ b/src/main/resources/data/bluepower/recipes/gate_or.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:or_gate" + "item": "bluepower:gate_or" }, "pattern": [ "TCT", diff --git a/src/main/resources/data/bluepower/recipes/gate_rs_latch.json b/src/main/resources/data/bluepower/recipes/gate_rs_latch.json index 99a62cc8..a759f53f 100644 --- a/src/main/resources/data/bluepower/recipes/gate_rs_latch.json +++ b/src/main/resources/data/bluepower/recipes/gate_rs_latch.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:rs_latch" + "item": "bluepower:gate_rs" }, "pattern": [ "WWA", diff --git a/src/main/resources/data/bluepower/recipes/gate_toggle_latch.json b/src/main/resources/data/bluepower/recipes/gate_toggle_latch.json index 734c9bd6..e50eb748 100644 --- a/src/main/resources/data/bluepower/recipes/gate_toggle_latch.json +++ b/src/main/resources/data/bluepower/recipes/gate_toggle_latch.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:toggle_latch" + "item": "bluepower:gate_toggle" }, "pattern": [ "CTT", diff --git a/src/main/resources/data/bluepower/recipes/gate_xnor.json b/src/main/resources/data/bluepower/recipes/gate_xnor.json index e29bb732..f7b954c6 100644 --- a/src/main/resources/data/bluepower/recipes/gate_xnor.json +++ b/src/main/resources/data/bluepower/recipes/gate_xnor.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:xnor_gate" + "item": "bluepower:gate_xnor" }, "pattern": [ "ACA", @@ -17,9 +17,6 @@ }, "C": { "item": "bluepower:bluestone_cathode_tile" - }, - "T": { - "item": "bluepower:stone_tile" } } } diff --git a/src/main/resources/data/bluepower/recipes/gate_xor.json b/src/main/resources/data/bluepower/recipes/gate_xor.json index 8a85fd03..f1267b33 100644 --- a/src/main/resources/data/bluepower/recipes/gate_xor.json +++ b/src/main/resources/data/bluepower/recipes/gate_xor.json @@ -1,6 +1,6 @@ { "result": { - "item": "bluepower:xor_gate" + "item": "bluepower:gate_xor" }, "pattern": [ "AWA", @@ -17,9 +17,6 @@ }, "C": { "item": "bluepower:bluestone_cathode_tile" - }, - "T": { - "item": "bluepower:stone_tile" } } }