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.

Muggles

Members
  • Joined

  • Last visited

  1. I've never bothered with enums because I've never really needed them, but I changed my code accordingly and it now works, so thanks for that
  2. Actually I just found out I can do event.setResult(Result.DENY), however I still don't know how to check if the event is happening. As I said in the post. event.getPhase().equals(event.type.TREE) doesn't work and the method you stated in your other post sounds similar to what I have already done
  3. I am trying to stop trees from generating, and found the DecorateBiomeEvent.Decorate event, however I cant seem to check if the event is equal to TREE, which is what is called when trees are generated. I've tried: if(event.getPhase().equals(event.type.TREE)) { System.out.println("TREE TREE TREE TREE TREE TREE TREE TREE - gone soon"); } and checking if event.type.TREE != null (which I didn't think would work but tried it anyways) but neither of them seem to work. Anyone know the correct way to check for an event? I also want to deny it so that it doesn't spawn trees, how would I do that aswell? Thanks
  4. I hate to be "that guy" asking you to explain in more detail, but could you explain that just a tad bit more please? As in, where do I use the BreakSpeed event? Thanks
  5. Using 1.8, is there a way that I can set the default players hands to have a harvestLevel of 0, so that they can't actually mine anything without the use of a tool (which of course I will have spawn with them)? I have been looking around for a while and couldn't find a way to do it, even with editing base files (which I wouldn't mind doing because I'm doing a total conversion of minecraft). Any suggestions/ideas? Thanks.

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.