Describe the problem related to your feature request.
Valence is lacking placement rules, i.e. the rules that should be followed when a player places or breaks a block. This includes the orientation of logs and stairs, redstone dust, torches, etc.
The client will predict these behaviors so it's important that we have direct support for it.
What solution would you like?
- Add a new method to
ChunkLayer called place_block, similar to set_block but with placement rules.
- Document the difference between
set_block and place_block.
- Make use of it in the building example.
What alternative(s) have you considered?
Putting this in a separate crate/plugin. But that doesn't seem necessary to me.
Additional context
Here's what Minestom does. Although I think its implementation is incomplete. We should check Vanilla source.
Describe the problem related to your feature request.
Valence is lacking placement rules, i.e. the rules that should be followed when a player places or breaks a block. This includes the orientation of logs and stairs, redstone dust, torches, etc.
The client will predict these behaviors so it's important that we have direct support for it.
What solution would you like?
ChunkLayercalledplace_block, similar toset_blockbut with placement rules.set_blockandplace_block.What alternative(s) have you considered?
Putting this in a separate crate/plugin. But that doesn't seem necessary to me.
Additional context
Here's what Minestom does. Although I think its implementation is incomplete. We should check Vanilla source.