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.

Nobisyu_12

Members
  • Joined

  • Last visited

  1. Never mind. I found it. Thanks for your help though
  2. Okay. Update on the situation. I have been doing some research/trial and error and I found out that instead of the "setHarvestLevel("pickaxe", 0)" line, they instead are two separate lines now. One being ".harvestLevel(0)" and" .harvestTool(ToolType harvestTool)". I understand the .harvestLevel part, but I don't know what it's asking for in the ToolType and harvestTool sections. I have put in things such as PickaxeItem and "pickaxe" but nothing seems to work.
  3. I don't quite understand how this would be done. Would I just put (for example): (Block.Properties.create(Material.ORGANIC).hardnessAndResistance(0.5f, 3.0f).setHarvestLevel("axe", 0).lightValue(0).sound(SoundType.PLANT))? Because I tried that and the response I got from Eclipse was that it said setHarvestLevel was undefined. Am I doing anything wrong here? Maybe I need to import a class or something. I really don't know.
  4. Hi. I am very new and not well versed in modding yet. I want to make a block have a specific harvest tool and level, but I don't know where to begin. I have the block working with drops and everything, but I cannot find how to do this. Through research I know I am supposed to use sub classes or something, but nowhere did I find a tutorial on how to set that up. I was wondering if anyone could help me with this. This is my modid.java file.

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.