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.

weeeee

Members
  • Joined

  • Last visited

  1. But where am I supposed to get that variable? :L
  2. Oh okay. And is there a way to "hide" buttons instead of removing them with "event.buttonList.remove(2);"? That one seems to crash my game :L
  3. Hi, I wanted to remove a button and a string from an exisiting gui. "event.buttonList.remove(2);" worked perfectly fine to remove the button but is there a similar code to remove a string? And also, is there a way to change the state of a button? For instance when I click on "Create World" it's usually set to "Survivial" and I would like it to be set to "Creative" without having to click on it
  4. So there's no way to change the drops? ._.
  5. Hello! I wanted to change the drops of boats. So firstly I tried to disable the drops, but that code didn't do anything :L It still dropped the items. Is EntityBoat even the correct one to use? Do boats use a different code for the drops, compared to normal entities? @SubscribeEvent public void LivingDropsEvent(LivingDropsEvent event) { if (event.entity instanceof EntityBoat) { event.drops.clear(); } } }
  6. Nevermind, managed to do it myself Thread can be closed
  7. I want the player to get healed when he wakes up in the morning. But the PlayerWakeUpEvent also gets triggered when you press the wake up button in bed and don't actually sleep 'till the next day. :L Does anyone have an idea how I could do that, that the player only gets healed when he stays in the bed? @SubscribeEvent public void PlayerWakeUpEvent(PlayerWakeUpEvent event) { event.entityPlayer.heal(20); } }

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.