Jump to content

DevSven

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by DevSven

  1. can you please write a code example?
  2. It is the vanilla concrete block
  3. And what do I put in as parameters?
  4. 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.
  5. Okay, have it working
  6. Okay i think what you mean is a stack, right?
  7. 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?
  8. FMLCommonHandler.instance().getMinecraftServerInstance().saveAllWorlds(false); Is that better?
  9. Yes, and how can that help me?
  10. 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
  11. 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.
  12. Ok thanks, the new version worked for me with some minor issues...
  13. I can't because I am building on another mod that only has 1.8.9 support
  14. and how does that help me with the save method in 1.8.9?
  15. I am asking because I didn't find anything
  16. It is not, so is there a method in 1.8.9 or not?
  17. It is computercraft
  18. Can't, I am building on top of another mod which only has support for 1.8.9
  19. Oh and I am using forge 1.8.9 so I think that method does not exist there
  20. 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 :)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.