Haydenman2 Posted June 26, 2020 Share Posted June 26, 2020 Hi all, I've been piecing through the 1.16 update and all is well so far, however I have not been able to find a replacement for these two fields on the Block.Properties options. Any advice? Quote ... Link to comment Share on other sites More sharing options...
Curle Posted June 26, 2020 Share Posted June 26, 2020 I see these fields in the Block.Properties class: private boolean variableOpacity; private int harvestLevel = -1; private net.minecraftforge.common.ToolType harvestTool; private java.util.function.Supplier<ResourceLocation> lootTableSupplier; The inner two are what you want. Quote Link to comment Share on other sites More sharing options...
Curle Posted June 26, 2020 Share Posted June 26, 2020 Ignore my last post, i was being a collossal idiot. Quote Link to comment Share on other sites More sharing options...
Curle Posted June 26, 2020 Share Posted June 26, 2020 IIt looks like in 1.16 they were put into Block: 515 private net.minecraftforge.common.ToolType harvestTool; 516 private int harvestLevel; You should be able to change them through a class that extends Block, without using the archaic Properties builder system. Note to self: don't look at the 1.15.2 source for a 1.16 issue Quote Link to comment Share on other sites More sharing options...
Curle Posted June 26, 2020 Share Posted June 26, 2020 Because i was on a streak of being a collossal idiot, i PRed a fix for this - AbstractBlock.Properties now has harvestTool and harvestLevel. https://github.com/MinecraftForge/MinecraftForge/pull/6819 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.