working on block rotation
This commit is contained in:
parent
b4cc959a35
commit
eee6f11154
2 changed files with 19 additions and 4 deletions
|
@ -937,10 +937,16 @@ public class SchematicLoader
|
|||
dimHelper.instance.createLink(sideLink);
|
||||
dimHelper.instance.createLink(sideLink.destDimID , sideLink.locDimID, sideLink.destXCoord, sideLink.destYCoord, sideLink.destZCoord, sideLink.locXCoord, sideLink.locYCoord, sideLink.locZCoord, dimHelper.instance.flipDoorMetadata(sideLink.linkOrientation));
|
||||
|
||||
setBlockDirectly(world,point.getX(), point.getY()-2, point.getZ(),Block.stoneBrick.blockID,0);
|
||||
// setBlockDirectly(world,point.getX(), point.getY()-1, point.getZ(),mod_pocketDim.ExitDoorID,sideLink.linkOrientation);
|
||||
// setBlockDirectly(world,point.getX(), point.getY(), point.getZ(),mod_pocketDim.ExitDoorID,8);
|
||||
if(world.getBlockId(point.getX(), point.getY()-3, point.getZ())==mod_pocketDim.blockDimWallID)
|
||||
{
|
||||
setBlockDirectly(world,point.getX(), point.getY()-2, point.getZ(),Block.stoneBrick.blockID,0);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
setBlockDirectly(world,point.getX(), point.getY()-2, point.getZ(),world.getBlockId(point.getX(), point.getY()-3, point.getZ()),world.getBlockMetadata(point.getX(), point.getY()-3, point.getZ()));
|
||||
|
||||
}
|
||||
}
|
||||
else if ((world.getBlockId(point.getX(), point.getY(), point.getZ())==mod_pocketDim.ExitDoorID&&world.getBlockId(point.getX(), point.getY()-1, point.getZ())==mod_pocketDim.ExitDoorID&&world.getBlockId(point.getX(), point.getY()-2, point.getZ())!=Block.sandStone.blockID))
|
||||
{
|
||||
|
|
|
@ -198,7 +198,16 @@ public class DungeonHelper
|
|||
this.metadataFlipList.add(Block.doorWood.blockID);
|
||||
this.metadataFlipList.add(Block.pistonBase.blockID);
|
||||
this.metadataFlipList.add(Block.pistonStickyBase.blockID);
|
||||
this.metadataFlipList.add(Block.redstoneComparatorActive);
|
||||
|
||||
this.metadataFlipList.add(Block.redstoneComparatorIdle.blockID);
|
||||
this.metadataFlipList.add(Block.redstoneComparatorActive.blockID);
|
||||
this.metadataFlipList.add(Block.signPost.blockID);
|
||||
this.metadataFlipList.add(Block.signWall.blockID);
|
||||
this.metadataFlipList.add(Block.skull.blockID);
|
||||
this.metadataFlipList.add(Block.ladder.blockID);
|
||||
this.metadataFlipList.add(Block.redstoneComparatorIdle);
|
||||
this.metadataFlipList.add(Block.redstoneComparatorIdle);
|
||||
this.metadataFlipList.add(Block.redstoneComparatorIdle);
|
||||
this.metadataFlipList.add(Block.redstoneComparatorIdle);
|
||||
|
||||
this.metadataFlipList.add(Block.stairsNetherBrick.blockID);
|
||||
|
|
Loading…
Reference in a new issue