Created
January 27, 2017 18:49
-
-
Save Robijnvogel/9e35b4e38d1bde4016c80c612ab0fdb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (blockString.startsWith("dimdoors")) { | |
String dimdoorsBlockName = blockString.split(":")[1]; | |
if (dimdoorsBlockName.equals("Fabric of RealityPerm")) { //only special case, because this is now another state of another block | |
isAncientFabric = true; | |
} else { | |
dimdoorsBlockName = convertOldDimDoorsBlockNameToNewDimDoorsBlockName(dimdoorsBlockName); | |
blockString = "dimdoors:" + dimdoorsBlockName; | |
} | |
} | |
IBlockState blockstate; | |
if (!isAncientFabric) { | |
Block block = ForgeRegistries.BLOCKS.getValue(new ResourceLocation(blockString)); | |
blockstate = block.getDefaultState(); | |
} else { | |
Block block = ForgeRegistries.BLOCKS.getValue(new ResourceLocation("blockDimWall")); | |
blockstate = getBlockStateWithProperties(block, new String[]{"type=ancient"}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment