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.

firewrz

Members
  • Joined

  • Last visited

Everything posted by firewrz

  1. Thanks for your answer! I'm new to modding, I still don't know how to do that in JSON files, Could you expain it in more detail?
  2. I created a custom button like this: public class CWButton extends BlockButtonWood { private final String name = "Transfer Button"; protected CWButton() { super(); GameRegistry.registerBlock(this, name); this.setUnlocalizedName(name); this.setCreativeTab(CreativeTabs.tabBlock); } } How can i do to make CWButton extend the texture of BlockButtonWood?
  3. I added a button on the main menu. When player clicks that button, i want a certain world to be loaded. Here is my code to load world: GuiButton playButton = new GuiButton(id, xPosition, yPosition, width, height, "play"){ @Override public void mouseReleased(int p_146118_1_, int p_146118_2_){ String name = "My World"; Settings.mc.launchIntegratedServer(name, name, null); Settings.mc.setIngameFocus(); } }; I got this error: java.lang.NullPointerException: Unexpected error at net.minecraft.client.network.NetHandlerPlayClient.handleJoinGame(NetHandlerPlayClient.java:275) at net.minecraft.network.play.server.S01PacketJoinGame.processPacket(S01PacketJoinGame.java:84) at net.minecraft.network.play.server.S01PacketJoinGame.processPacket(S01PacketJoinGame.java:142) at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) at net.minecraft.client.Minecraft.runTick(Minecraft.java:2152) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) at net.minecraft.client.Minecraft.run(Minecraft.java:962) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) It seems i cannot simpily use launchIntegratedServer() to load a world successfully. What is the right way?

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.