A collection of vanilla-like placement rules for Minestom.
Just copy the rules
directory located here into your project!
You can easily customise the rules by just modifying the code.
Want to be able to place buttons on fences? just modify the canPlaceAt
method in GenericBlockPlacementRule or override it in ButtonRule!
These rules may not be 100% accurate, if you want to improve the accuracy feel free to fork and make a pull request. The rules are based off of vanilla's and aim to be as accurate as possible.