Sign in to follow this
Followers
0
Forge 1.12.2 Modmaking, how to make it so that I can't break things with my fist?
By
PogChamp, in General Discussion
-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
The only true way to know is to call BlockState#canHarvestBlock, which requires a player and will check the item the player is currently holding or other arbitrary things about the player (mods may have all kinds of arbitrary requirements for harvesting). -
By diesieben07 · Posted
Best way is probably just to delete it and let it regenerate -
What would be the ideal way to check if I can break a a block by a pickaxe or a shovel? I rewrote the whole logic and now I use the Item.canHarvestBlock, but it doesn't work reliable neither. For dirt the shovel returns false. 😔 Here is my logic: Github code Do you have any suggestion? Thank you in advance and I will let you know when the PR is ready.
-
-
Topics
-
Who's Online (See full list)