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 am trying to make a block like so 

    public static final RegistryObject<Block>SILVER_ORE = register("silver_ore", ()->
        new Block(Block.Properties.of(Material.METAL)
            .strength(3.0f, 10.0f)
            .sound(SoundType.CHAIN)
            .requiresCorrectToolForDrops()
            .harvestLevel(3)
            ));

The problem is that the function harvestLevel is undefined for BlockBehaviour.Properties. 

I have the docs open and I can see that the method is there, however its raising an error in the code

docs: (https://nekoyue.github.io/ForgeJavaDocs-NG/javadoc/1.17.1/net/minecraft/world/level/block/state/BlockBehaviour.Properties.html)

 

Anyone know why this is happening ? 

the HarvestLevel is now controlled by tags screach for it in the forum since this question has answered a few times

  • Author
4 minutes ago, Luis_ST said:

the HarvestLevel is now controlled by tags screach for it in the forum since this question has answered a few times

thanks, so are those java docs already out of date then ? 

16 hours ago, glifa said:

thanks, so are those java docs already out of date then ?

you can search for it in the forum, as I have already answered this question in a few threads
you can start at this thread:

 

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.