fix wires

This commit is contained in:
Sen 2025-08-04 14:05:50 +02:00
parent 4e16421651
commit 03fbf90a68
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
15 changed files with 461 additions and 958 deletions

View file

@ -85,7 +85,7 @@ public abstract class ReorderRegistry {
PLACE_LAST.add(Blocks.soul_grass);
PLACE_LAST.add(Blocks.piston);
PLACE_LAST.add(Blocks.sticky_piston);
PLACE_LAST.add(Blocks.tripwire_hook);
PLACE_LAST.add(Blocks.hook);
PLACE_LAST.add(Blocks.string);
for(BlockFlowerPot block : BlockFlowerPot.POTS) {
PLACE_LAST.add(block);
@ -202,7 +202,7 @@ public abstract class ReorderRegistry {
addCardinals(Blocks.cocoa, offset + 0, offset + 1, offset + 2, offset + 3);
}
for (int offset = 0; offset < 16; offset += 4) {
addCardinals(Blocks.tripwire_hook, offset + 2, offset + 3, offset + 0, offset + 1);
addCardinals(Blocks.hook, offset + 2, offset + 3, offset + 0, offset + 1);
}
addAttach(Blocks.string, Facing.DOWN);
for(BlockFlowerPot block : BlockFlowerPot.POTS) {

View file

@ -73,8 +73,8 @@ import common.block.tech.BlockStandingSign;
import common.block.tech.BlockRail.EnumRailDirection;
import common.block.tech.BlockTorch;
import common.block.tech.BlockTNT;
import common.block.tech.BlockTripWire;
import common.block.tech.BlockTripWireHook;
import common.block.tech.BlockString;
import common.block.tech.BlockHook;
import common.block.tech.BlockWallSign;
import common.block.tech.BlockWarpChest;
import common.collect.Lists;
@ -1003,38 +1003,38 @@ public abstract class Converter {
mapBlock(Blocks.warp_chest.getState().withProperty(BlockWarpChest.FACING, Facing.SOUTH), 130, 3, 9, 15);
mapBlock(Blocks.warp_chest.getState().withProperty(BlockWarpChest.FACING, Facing.WEST), 130, 4, 10);
mapBlock(Blocks.warp_chest.getState().withProperty(BlockWarpChest.FACING, Facing.EAST), 130, 5, 11);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.SOUTH).withProperty(BlockTripWireHook.POWERED, false), 131, 0);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.WEST).withProperty(BlockTripWireHook.POWERED, false), 131, 1);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.NORTH).withProperty(BlockTripWireHook.POWERED, false), 131, 2);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.EAST).withProperty(BlockTripWireHook.POWERED, false), 131, 3);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.SOUTH).withProperty(BlockTripWireHook.POWERED, false), 131, 4);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.WEST).withProperty(BlockTripWireHook.POWERED, false), 131, 5);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.NORTH).withProperty(BlockTripWireHook.POWERED, false), 131, 6);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.EAST).withProperty(BlockTripWireHook.POWERED, false), 131, 7);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.SOUTH).withProperty(BlockTripWireHook.POWERED, true), 131, 8);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.WEST).withProperty(BlockTripWireHook.POWERED, true), 131, 9);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.NORTH).withProperty(BlockTripWireHook.POWERED, true), 131, 10);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, false).withProperty(BlockTripWireHook.FACING, Facing.EAST).withProperty(BlockTripWireHook.POWERED, true), 131, 11);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.SOUTH).withProperty(BlockTripWireHook.POWERED, true), 131, 12);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.WEST).withProperty(BlockTripWireHook.POWERED, true), 131, 13);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.NORTH).withProperty(BlockTripWireHook.POWERED, true), 131, 14);
mapBlock(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.ATTACHED, true).withProperty(BlockTripWireHook.FACING, Facing.EAST).withProperty(BlockTripWireHook.POWERED, true), 131, 15);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, false), 132, 0);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, false), 132, 1);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, true), 132, 2);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, true), 132, 3);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, false), 132, 4);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, false), 132, 5);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, true), 132, 6);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, false).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, true), 132, 7);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, false), 132, 8);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, false), 132, 9);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, true), 132, 10);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, false).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, true), 132, 11);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, false), 132, 12);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, false), 132, 13);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, false).withProperty(BlockTripWire.SUSPENDED, true), 132, 14);
mapBlock(Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, true).withProperty(BlockTripWire.DISARMED, true).withProperty(BlockTripWire.POWERED, true).withProperty(BlockTripWire.SUSPENDED, true), 132, 15);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.SOUTH).withProperty(BlockHook.TRIGGERED, false), 131, 0);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.WEST).withProperty(BlockHook.TRIGGERED, false), 131, 1);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.NORTH).withProperty(BlockHook.TRIGGERED, false), 131, 2);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.EAST).withProperty(BlockHook.TRIGGERED, false), 131, 3);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.SOUTH).withProperty(BlockHook.TRIGGERED, false), 131, 4);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.WEST).withProperty(BlockHook.TRIGGERED, false), 131, 5);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.NORTH).withProperty(BlockHook.TRIGGERED, false), 131, 6);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.EAST).withProperty(BlockHook.TRIGGERED, false), 131, 7);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.SOUTH).withProperty(BlockHook.TRIGGERED, true), 131, 8);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.WEST).withProperty(BlockHook.TRIGGERED, true), 131, 9);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.NORTH).withProperty(BlockHook.TRIGGERED, true), 131, 10);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, false).withProperty(BlockHook.FACING, Facing.EAST).withProperty(BlockHook.TRIGGERED, true), 131, 11);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.SOUTH).withProperty(BlockHook.TRIGGERED, true), 131, 12);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.WEST).withProperty(BlockHook.TRIGGERED, true), 131, 13);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.NORTH).withProperty(BlockHook.TRIGGERED, true), 131, 14);
mapBlock(Blocks.hook.getState().withProperty(BlockHook.ATTACHED, true).withProperty(BlockHook.FACING, Facing.EAST).withProperty(BlockHook.TRIGGERED, true), 131, 15);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 0);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 1);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 2);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 3);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 4);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 5);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 6);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 7);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 8);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 9);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 10);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 11);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 12);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 13);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, false), 132, 14);
mapBlock(Blocks.string.getState().withProperty(BlockString.TOUCHED, true), 132, 15);
mapBlock(Blocks.emerald_block, 133);
mapBlock(Blocks.spruce_stairs.getState().withProperty(BlockStairs.FACING, Facing.EAST).withProperty(BlockStairs.HALF, EnumHalf.BOTTOM), 134, 0, 8);
mapBlock(Blocks.spruce_stairs.getState().withProperty(BlockStairs.FACING, Facing.WEST).withProperty(BlockStairs.HALF, EnumHalf.BOTTOM), 134, 1, 9);

View file

@ -18,7 +18,6 @@ import common.rng.WeightedList;
import common.tags.TagObject;
import common.tileentity.TileEntity;
import common.tileentity.TileEntityChest;
import common.tileentity.TileEntityDispenser;
import common.util.BlockPos;
import common.util.Facing;
import common.world.State;
@ -716,28 +715,6 @@ public abstract class StructureComponent
}
}
protected boolean generateDispenserContents(WorldServer worldIn, StructureBoundingBox boundingBoxIn, Random rand, int x, int y, int z, Facing dir, WeightedList<RngLoot> listIn, int max)
{
BlockPos blockpos = new BlockPos(this.getXWithOffset(x, z), this.getYWithOffset(y), this.getZWithOffset(x, z));
if (boundingBoxIn.isVecInside(blockpos) && worldIn.getState(blockpos).getBlock() != Blocks.dispenser)
{
worldIn.setState(blockpos, this.getMetadataWithOffset(Blocks.dispenser.getState().withProperty(BlockDispenser.FACING, dir)), 2);
TileEntity tileentity = worldIn.getTileEntity(blockpos);
if (tileentity instanceof TileEntityDispenser)
{
RngLoot.generateDispenserContents(rand, listIn, (TileEntityDispenser)tileentity, max);
}
return true;
}
else
{
return false;
}
}
/**
* Places door on given position
*/

View file

@ -2,10 +2,6 @@ package server.worldgen.structure;
import common.block.artificial.BlockStairs;
import common.block.foliage.BlockVine;
import common.block.tech.BlockLever;
import common.block.tech.BlockPistonBase;
import common.block.tech.BlockTripWire;
import common.block.tech.BlockTripWireHook;
import common.entity.npc.EntityMage;
import common.init.Blocks;
import common.item.RngLoot;
@ -351,8 +347,6 @@ public class StructureScattered
{
private boolean placedMainChest;
private boolean placedHiddenChest;
private boolean placedTrap1;
private boolean placedTrap2;
private static StructureScattered.JunglePyramid.Stones scattered = new StructureScattered.JunglePyramid.Stones();
public JunglePyramid()
@ -369,8 +363,6 @@ public class StructureScattered
super.writeTags(tagCompound);
tagCompound.setBool("placedMainChest", this.placedMainChest);
tagCompound.setBool("placedHiddenChest", this.placedHiddenChest);
tagCompound.setBool("placedTrap1", this.placedTrap1);
tagCompound.setBool("placedTrap2", this.placedTrap2);
}
protected void readTags(TagObject tagCompound)
@ -378,8 +370,6 @@ public class StructureScattered
super.readTags(tagCompound);
this.placedMainChest = tagCompound.getBool("placedMainChest");
this.placedHiddenChest = tagCompound.getBool("placedHiddenChest");
this.placedTrap1 = tagCompound.getBool("placedTrap1");
this.placedTrap2 = tagCompound.getBool("placedTrap2");
}
public boolean addComponentParts(WorldServer worldIn, Random randomIn, StructureBoundingBox structureBoundingBoxIn)
@ -497,30 +487,11 @@ public class StructureScattered
this.fillWithRandomizedBlocks(worldIn, structureBoundingBoxIn, 7, -2, 1, 9, -2, 1, false, randomIn, scattered);
this.fillWithRandomizedBlocks(worldIn, structureBoundingBoxIn, 6, -3, 1, 6, -3, 1, false, randomIn, scattered);
this.fillWithRandomizedBlocks(worldIn, structureBoundingBoxIn, 6, -1, 1, 6, -1, 1, false, randomIn, scattered);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.FACING, Facing.EAST).withProperty(BlockTripWireHook.ATTACHED, Boolean.valueOf(true))), 1, -3, 8, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.FACING, Facing.WEST).withProperty(BlockTripWireHook.ATTACHED, Boolean.valueOf(true))), 4, -3, 8, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, Boolean.valueOf(true)), 2, -3, 8, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, Boolean.valueOf(true)), 3, -3, 8, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.mossy_cobblestone.getState(), 3, -3, 1, structureBoundingBoxIn);
if (!this.placedTrap1)
{
this.placedTrap1 = this.generateDispenserContents(worldIn, structureBoundingBoxIn, randomIn, 3, -2, 1, Facing.NORTH, LootConstants.JUNGLE_TRAP, 2);
}
this.setBlockState(worldIn, Blocks.vine.getState().withProperty(BlockVine.EAST, true).withProperty(BlockVine.NORTH, true).withProperty(BlockVine.SOUTH, true).withProperty(BlockVine.WEST, true), 3, -2, 2, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.FACING, Facing.NORTH).withProperty(BlockTripWireHook.ATTACHED, Boolean.valueOf(true))), 7, -3, 1, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.tripwire_hook.getState().withProperty(BlockTripWireHook.FACING, Facing.SOUTH).withProperty(BlockTripWireHook.ATTACHED, Boolean.valueOf(true))), 7, -3, 5, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, Boolean.valueOf(true)), 7, -3, 2, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, Boolean.valueOf(true)), 7, -3, 3, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.string.getState().withProperty(BlockTripWire.ATTACHED, Boolean.valueOf(true)), 7, -3, 4, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.mossy_cobblestone.getState(), 9, -3, 4, structureBoundingBoxIn);
if (!this.placedTrap2)
{
this.placedTrap2 = this.generateDispenserContents(worldIn, structureBoundingBoxIn, randomIn, 9, -2, 3, Facing.WEST, LootConstants.JUNGLE_TRAP, 2);
}
this.setBlockState(worldIn, Blocks.vine.getState().withProperty(BlockVine.EAST, true).withProperty(BlockVine.NORTH, true).withProperty(BlockVine.SOUTH, true).withProperty(BlockVine.WEST, true), 8, -1, 3, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.vine.getState().withProperty(BlockVine.EAST, true).withProperty(BlockVine.NORTH, true).withProperty(BlockVine.SOUTH, true).withProperty(BlockVine.WEST, true), 8, -2, 3, structureBoundingBoxIn);
@ -543,15 +514,9 @@ public class StructureScattered
this.setBlockState(worldIn, Blocks.carved_stonebrick.getState(), 8, -2, 11, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.carved_stonebrick.getState(), 9, -2, 11, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.carved_stonebrick.getState(), 10, -2, 11, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.lever.getState().withProperty(BlockLever.FACING, BlockLever.EnumOrientation.NORTH)), 8, -2, 12, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.lever.getState().withProperty(BlockLever.FACING, BlockLever.EnumOrientation.NORTH)), 9, -2, 12, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.lever.getState().withProperty(BlockLever.FACING, BlockLever.EnumOrientation.NORTH)), 10, -2, 12, structureBoundingBoxIn);
this.fillWithRandomizedBlocks(worldIn, structureBoundingBoxIn, 8, -3, 8, 8, -3, 10, false, randomIn, scattered);
this.fillWithRandomizedBlocks(worldIn, structureBoundingBoxIn, 10, -3, 8, 10, -3, 10, false, randomIn, scattered);
this.setBlockState(worldIn, Blocks.mossy_cobblestone.getState(), 10, -2, 9, structureBoundingBoxIn);
this.setBlockState(worldIn, Blocks.sticky_piston.getState().withProperty(BlockPistonBase.FACING, Facing.UP), 9, -2, 8, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.sticky_piston.getState().withProperty(BlockPistonBase.FACING, Facing.WEST)), 10, -2, 8, structureBoundingBoxIn);
this.setBlockState(worldIn, this.getMetadataWithOffset(Blocks.sticky_piston.getState().withProperty(BlockPistonBase.FACING, Facing.WEST)), 10, -1, 8, structureBoundingBoxIn);
if (!this.placedHiddenChest)
{