Jump to content

[1.16.5] Materials of Blocks not found


Recommended Posts

I just updated my mod to Forge version 36.2.0 from 36.0.1 and now I get following error for any of Blocks at the Registry after I executed Gradle Task runClient.


error: cannot find symbol
            BlockList.copper_block = new Block(Block.Properties.create(Material.IRON).hardnessAndResistance(2.0F, 3.0F).sound(SoundType.METAL).harvestLevel(1).harvestTool(ToolType.PICKAXE)).setRegistryName(location("copper_block")),
  symbol:   variable IRON
  location: class Material

(same with ROCK instead of IRON)


But the Error ist just shown after I executed the Task and not at the code itself. 

P.S. I looked it up: The class Material with the variables IRON and ROCK exists.

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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