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.

Mitchellbrine

Forge Modder
  • Joined

  • Last visited

Everything posted by Mitchellbrine

  1. You just need to make it an itemstack instead of the item in the parameters for the crafting recipe. For example, if you want to use a regular potion of invisibility, you would just need to put: new ItemStack(Item.potion, 1, 8206) That's all!
  2. RANKSHANK, I implemented it on my main class. Here are my methods. Can you tell me if they work? Here they are: (I don't really need a spoiler) @Override public void saveNBTData(NBTTagCompound compound) { compound.setInteger("Special", Special); compound.setInteger("Valiantite", ValiantActivate); } @Override public void loadNBTData(NBTTagCompound compound) { compound.getInteger("Special"); compound.getInteger("Valiantite"); } @Override public void init(Entity entity, World world) { } Would this work? P.S. Special and ValiantActivate are the integers I was talking about for the mod.
  3. I sort of get what you're saying. Yet, I sort of don't. Let me explain my situation because I think I would be getting even greater help by detailing. In my mod, the player gets this thing called Stamina after mining up the ore. I want to be able to save that data in, maybe, the level.dat or another dat file, so when the world's opened, it has the saved int. Is there a clear method for that? I just want a way to save the int to be opened later.
  4. Thank you SO MUCH for this topic! It really helped! ;D ;D
  5. Basically what the title says. I want the player to unlock a certain power, but since everything restarts at startup of the mod, it resets all the integers back to 0. I want to know if there is a way to save something to the configuration file while in game, so it saves it for later. After looking at a bunch of tutorials for configuration, I'm baffled at how I work with configs. Can anyone help me? (Sorry about it sounding so complicated.)
  6. I have been working on my dimension for quite a while, but I've been getting this error where it will keep teleporting me back and forth from my dimension to the Overworld. If I get lucky with /kill, I can end up in my dimension, but I'm aiming for it to work like a regular portal should. Here's my code: My Portal Block: My Teleporter: My WorldProvider: My ChunkProvider: So, that's my code. It's not a crashing error, so I don't have a crash report.
  7. I am actually having troubles with using this method. Is there any chance someone could fix the error I'm getting? It says that I cannot make a static reference to the field I'm using. I followed what you put down for the int entirely. Is there any way I can fix it without making it static? I've already tried making it static and it crashes the game. My Main Mod Class (Only the part I need help with): My Common Proxy: My ClientProxy:
  8. I am actually having troubles with using this method. Is there any chance someone could fix the error I'm getting? It says that I cannot make a static reference to the field I'm using. I followed what you put down for the int entirely. Is there any way I can fix it without making it static? I've already tried making it static and it crashes the game. My Main Mod Class (Only the part I need help with): My Common Proxy: My ClientProxy:

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.