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.

Clarinetncleats3

Members
  • Joined

  • Last visited

Everything posted by Clarinetncleats3

  1. Oooh thanks for telling me. What would be the better way?
  2. Uhhh... did you comment on the wrong post? Because your post makes no sense in this context.
  3. Are you just trying to put a message in a player's chat? It looks like you have an EntityPlayerMP, so what you can do is: EntityPlayerMP epmp = Whatever it is equal to; if (epmp instanceof EntityPlayer){ //Can epmp be turned into a player? (Won't throw an error if false) EntityPlayer player = (EntityPlayer) epmp; //Turn epmp into a player. (Would throw an error if it didn't work) player.addChatMessage("This is the message you will send to the player!"); }
  4. Is this what you meant? ... Because it doesn't work.
  5. In other words, what you need is this World world = Minecraft.getMinecraft().theWorld; world.setBlock(plX, plY, plZ, 500); //Or whatever
  6. HI, In the mod I'm making, I want the user to be able to type "SLEnable" to enable the mod and "SLDisable to disable the mod. This works fine while ingame, but when you exit the game and rejoin, it goes back to the default state of being enabled. After looking in the forge/mcp/jars/config directory, I found that the configuration file is simply not changing when these "commands" are being run. I looked at this post: http://www.minecraftforge.net/forum/index.php/topic,7746.0.html. I changed my boolean "Enabled" variable to a Property and used the Property.set() method but the config file is still not changing. My Body Class (SLMain.java): My ChatHandler class (SLChatHandler.java): Why is the Enabled property not changing in the configuration file? By the way, disregard the fact that the MinecraftForge.EVENT_BUS.register(new SLChatHandler()); was in the postInit instead of the load. I did that in an attempt to troubleshoot something earlier. Thanks, Clarinetncleats3

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.