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.

hisui

Members
  • Joined

  • Last visited

  1. Thank you. Feel a bit silly since I've read before that you should use a different method than vanilla uses for doing drops like that but I guess that's not entirely true since it does work. Thanks!
  2. Hey, new modder here. I've been searching for a tutorial on how to make a block (an ore, in my case) drop something other than itself (like redstone ore does), but tutorials I've found have either been outdated or not good for my context (designed for having ore variants, etc) So, that said, could someone please explain how to make my ore drop a random amount (from x to y) of an item other than itself? Here's the code for the block itself: public class OreUranium extends Block implements IHasModel { public OreUranium(String name, Material material) { super(material); setUnlocalizedName(name); setRegistryName(name); setCreativeTab(Main.uraniumtab); setHarvestLevel("pickaxe", 2); setHardness(3.0F); BlockInit.BLOCKS.add(this); ItemInit.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName())); } @Override public void registerModels() { Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory"); } } Any help would be appreciated

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.