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.

Kautl

Members
  • Joined

  • Last visited

  1. Hello, I'm kinda new to modding and I'm searching for the part that makes coal drop xp, so I could modify it (I want to make it drop at least 1 orb always), and I wanted to make iron and gold drop some xp, as they don't drop anything. Please let me know if you know about this, cause my head hurts from reading so much code that I don't understand. I think it's supposed to be on the onBlockDestroyedByPlayer(I think thats the name) but I don't see it in the BlockOre class, and I'm confused @-@
  2. Well, it seems no one wanted to help me with this one, but I think I worked out the problem. The changes doesn't take ffect because they are listed in ForgeHooks with their original harvest levels.
  3. I think you misunderstood my problem, I had already changed that, but the changes on the harvest level do not take effect, while every other change, like durability and mining speed do change. this is what I wrote in the EnumToolMaterial public enum EnumToolMaterial { WOOD(0, 100, 3.0F, 0, 15), STONE(1, 200, 5.0F, 1, 5), IRON(2, 350, 6.0F, 2, 14), EMERALD(3, 1600, 8.0F, 3, 10), GOLD(2, 600, 12.0F, 2, 22); I already tried changing the other harvest levels, and they do not change in game neither... anyone have any idea of what this could be?
  4. Hello, I'm new both to the forums and modding, but I've gone through several tutorials and I think I've got the basics down. My problem is that I tried to change the original tools in Minecraft to rebalance them, but I can't seem to change the harvest level for the GOLD EnumToolMaterial. The weird thing is that all the other changes do take effect (I changed durabilities and mining speed). I wanted to make gold tools as strong as iron, but whatever I do, it keeps acting as harvest level 0 instead of 2. That's the only thing I really want to do so, I haven't written anything else besides modifying those values. EDIT: Added code to clarify my problem: public enum EnumToolMaterial { WOOD(0, 100, 3.0F, 0, 15), STONE(1, 200, 5.0F, 1, 5), IRON(2, 350, 6.0F, 2, 14), EMERALD(3, 1600, 8.0F, 3, 10), GOLD(2, 600, 12.0F, 2, 22); This makes every change work except the harvest level. I tried changing the other harvest levels and they don't work either.

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.