
DevSven
Members-
Posts
21 -
Joined
-
Last visited
Everything posted by DevSven
-
can you please write a code example?
-
It is the vanilla concrete block
-
And what do I put in as parameters?
-
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.
-
Okay i think what you mean is a stack, right?
-
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?
-
FMLCommonHandler.instance().getMinecraftServerInstance().saveAllWorlds(false); Is that better?
-
Yes, and how can that help me?
-
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
-
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.
-
Ok thanks, the new version worked for me with some minor issues...
-
I can't because I am building on another mod that only has 1.8.9 support
-
and how does that help me with the save method in 1.8.9?
-
I am asking because I didn't find anything
-
It is not, so is there a method in 1.8.9 or not?
-
It is computercraft
-
Can't, I am building on top of another mod which only has support for 1.8.9
-
Oh and I am using forge 1.8.9 so I think that method does not exist there
-
Hello, I am currently trying to develop a mod in which it is necessary to be able to save the current state of the world. I need the same method which is triggered by pressing escape in normal minecraft. I hope somebody knows an answer :)