Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DevSven

Members
  • Joined

  • Last visited

  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. DevSven replied to DevSven's topic in Modder Support
    Okay, have it working
  6. DevSven replied to DevSven's topic in Modder Support
    Okay i think what you mean is a stack, right?
  7. DevSven posted a topic in Modder Support
    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?

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.