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.

Featured Replies

Posted

I've been looking around for up to date experience drop methods but the closest I've come to is this thread here from the Minecraft Forums, but this is for 1.7.10 and I'm guessing these no longer work anymore?

 

https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/minecraft-mods/modification-development/2617597-tutorial-how-to-add-xp-drops-to-custom-ore-blocks

 

If not then I'm not sure on how I'd go onto doing this, other than looking at someone else's code, but that'd be my last resort into doing this. :)

I bet it's an easy one too. ^^'

 

~Blood

  • Author
1 minute ago, diesieben07 said:

You still override Block#getExpDrop to determine how much experience is dropped.

So you're saying using that code is still relevant? 

  • Author
1 minute ago, diesieben07 said:

The code in that post is kinda terrible.

I don't know why you need a tutorial on how to override a method and return a random number though.

Wasn't sure on if that would work due to the way Forge has changed since then, and I mean I've only been doing this for around a week or two myself so It's all new to me but I remember forge going under some big changes since back then is all. 

  • Author
3 minutes ago, diesieben07 said:

The method has javadocs. They explain things.

Yeah gonna catch up on them now. Thanks for the help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.