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.

B0undarybreaker

Members
  • Joined

  • Last visited

  1. Have you tried running the function through the /function command? I have a feeling functions in the mod itself might not work, since they're per-world.
  2. Ahhhhhh, that would do it. Works now. Thanks!!!
  3. I'm trying to make an inventory with five slots, but every time I try to put more than one slot on the Container file for the inventory, the game crashes as soon as I open the inventory. It says that it only has slots [0,1) available in the crash log even though I have the IStackHandler's size parameter set to 5. Am I doing something wrong? (side note: I kinda have the feeling that my container file could be a little more efficient with all the markDirty(); so if that can be improved please let me know) relevant files:
  4. I'm not really sure what to do otherwise. I'm just going off what tutorials I can find, and I can't really find any for a client-only GUI except for one that's for Forge 1.8 and uses IGuiHandler. I don't know how to use the sided proxy to open a GUI.
  5. Hm. Even then, it doesn't seem to be working. I right-click the ItemNote and nothing happens; it doesn't even do the screen tint or freeze my character. Is there anything else I might be doing wrong?
  6. I'm trying to make an in-game tutorial-like thing for my mod, and want it to just draw a gui element on screen when you use an item. However, whenever I try, nothing happens. I don't get any error in the console, and I think I have everything set up properly, I'll attach the relevant files. Hell, I'm not even sure if you can use drawTexturedModalRext with a GuiScreen but I really hope you can or there's some other way to draw a gui without needing a whole container setup. What should I be doing that isn't being properly done?
  7. Worked. Thank you! For others with the problem, here's the code I used, grabbed from this Minecraft Forum post: public class TileEntitySmelter extends TileEntity { //... @Override public boolean shouldRefresh(World world, BlockPos pos, IBlockState oldState, IBlockState newState) { return (oldState.getBlock() != newState.getBlock()); } }
  8. I'm trying to make a block I've made change its model when I put something into its inventory. Right now, the only way I can tell how to change block states at all is with world.setBlockState(pos, state.cycleProperty(MODE, 3); (at least that's the code I'm using for it), but doing that resets the NBT and clears out the inventory. I've tried shuffling around the tile.markDirty(); commands and the setBlockUpdate ones but nothing's managed to save the inventory and the state. What should I be doing instead? The code being used, in case I'm just doing something drastically wrong with what I currently have:
  9. I'm trying to test out the sendMessage function with an item that sends a message through chat when you right-click with it. However, for some reason, it's having a bit of an issue: it's sending the message twice. I have no idea why it's happening, but it is. I've got a video of that happening here, and I'll include the code for the item under a spoiler. Anyone have an idea what's happening?

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.