Jump to content

glifa

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by glifa

  1. 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 ? 

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.