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.

_loco_

Members
  • Joined

  • Last visited

  1. My mod has skill trees, and I though of ways to display them. I decided that a system like the achievement GUI would be the best way to go. So how would I draw the actual achievement GUI? I thought I should extend GuiAchievements , but it requires a StatFileWriter in its constructor. The obfuscated fields in GuiAchievements aren't helping either. So is there a way to render a custom GUI like the achievement GUI?
  2. Use the KeyBinding class that comes with forge instead of the LWJGL Keyboard.isKeyDown(). A tutorial on how to use key bindings is here: http://www.minecraftforge.net/wiki/Key_Binding (It's also better to use KeyBindings because the client can change what keys do what.)
  3. Thanks, but I found a better way to do this for my situation. I use the Item#onUpdate method and just store the ticks passed as damage values.
  4. How would I get the amount of ticks passed between two triggers? (e.g. a onItemRightClick trigger) Example: @Override public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World worldIn, EntityPlayer playerIn, EnumHand hand) { int ticks = getTicks(); // gets ticks since the last time getTicks() was called System.out.println(ticks); return new ActionResult(EnumActionResult.PASS, stack); } How would I make the getTicks() method?

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.