-
Set concrete block with color
can you please write a code example?
-
Set concrete block with color
It is the vanilla concrete block
-
Set concrete block with color
And what do I put in as parameters?
-
Set concrete block with color
Hello, I am currently trying to get and set concrete blocks with a color, the problem is that when I do world.setBlockstate(pos, myBlock.getDefaultState()) I always get a white concrete out of it even though my original block a scanned previously was blue or something like that.
- Undo actions
-
Undo actions
Okay i think what you mean is a stack, right?
-
Undo actions
I previously asked how to save a world but something that came in my mind when I saw Worldedit is a undo function. Does anybody know how to do that in a simple way?
-
Save World Method
FMLCommonHandler.instance().getMinecraftServerInstance().saveAllWorlds(false); Is that better?
-
Save World Method
Yes, and how can that help me?
- Save World Method
-
Save World Method
I am creating a natural language interface to control a turtle and because natural language can be interpretted in different ways I have to show the different options and if the turtle destroys something in the world that can't be repaired I want to copy the world and afterwards delete it. You can look at the original project on flipper.mpi-sws.org
-
Save World Method
public static void showOptions(Flipper bot) { try { Minecraft.getMinecraft().getIntegratedServer().saveAllWorlds(false); WorldInfo info = FMLClientHandler.instance().getWorldClient().getWorldInfo(); String saveDir = FMLClientHandler.instance().getSavesDir().getName(); String name = getNewSaveFileLocation(); File srcDir = new File(DimensionManager.getCurrentSaveRootDirectory().getAbsolutePath()); File destDir = new File(saveDir + "/" + name); FileUtils.copyDirectory(srcDir, destDir); Minecraft.getMinecraft().launchIntegratedServer(name, name, new WorldSettings(info)); World world = Minecraft.getMinecraft().getIntegratedServer().getEntityWorld(); TileEntity te = world.getTileEntity(bot.getPos()); ITurtleAccess access = ((TileTurtle) te).getAccess(); bot.changeWorld(access, te, world); } catch (IOException e) { // e.printStackTrace(); } } I am trying to change the current world with code which worked fine in 1.8.9 but now shows a message that the server was shut down (which is true) that interrupts the whole process.
-
Save World Method
Ok thanks, the new version worked for me with some minor issues...
-
Save World Method
I can't because I am building on another mod that only has 1.8.9 support
-
Save World Method
and how does that help me with the save method in 1.8.9?
IPS spam blocked by CleanTalk.