mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-16 18:54:50 +00:00
World usage working
This commit is contained in:
1 parent
4baacc0cfd
commit
40b70bfec3
5 files changed
+42
-33
No files matched your search
@@ -35,12 +35,16 @@ public class Postea {
|
||||
};*/
|
||||
|
||||
//TileEntityReplacementManager.tileEntityFixer("GT_TileEntity_Ores", myTransformer);
|
||||
TileEntityReplacementManager.tileEntityTransformer("GT_TileEntity_Ores", (tag) -> {
|
||||
if (tag.getInteger("m") == 86) {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.wool, 5);
|
||||
TileEntityReplacementManager.tileEntityTransformer("GT_TileEntity_Ores", (tag, world) -> {
|
||||
if (world.provider.dimensionId == -1) {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.wool, 1);
|
||||
}
|
||||
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.wool, 1);
|
||||
if (world.provider.dimensionId == 1) {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.wool, 2);
|
||||
}
|
||||
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.wool, 3);
|
||||
});
|
||||
|
||||
|
||||
@@ -70,7 +74,7 @@ public class Postea {
|
||||
return new ChunkFixerUtility.BlockInfo(Blocks.chest, 0, chestTransformer);
|
||||
});*/
|
||||
|
||||
TileEntityReplacementManager.tileEntityTransformer("Chest", (tag) -> {
|
||||
TileEntityReplacementManager.tileEntityTransformer("Chest", (tag, world) -> {
|
||||
|
||||
Function<NBTTagCompound, NBTTagCompound> chestTransformer = (oldTag) -> {
|
||||
|
||||
@@ -105,7 +109,7 @@ public class Postea {
|
||||
return new Pair<>(7, 0);
|
||||
};
|
||||
|
||||
BlockReplacementManager.addBlockReplacement("grass", 0, blockTransformer);
|
||||
BlockReplacementManager.addBlockReplacement("minecraft:grass", 0, blockTransformer);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user