Toolbelt in Vivecraft
hammy275 opened this issue ยท 0 comments
Once I finish up Vivecraft/VivecraftMod#184 , I think it would make a lot of sense to add the tool belt mentioned in #315 to Vivecraft directly. If it's not added there though, it'll still make its way to ImmersiveMC.
The tool belt itself would be 4(?) actions at around waist height. All actions should be represented with one item, and could be interacted with by hovering over the area, likely followed by an interaction button. By default, they would be mapped to switching the selected hotbar slot to the first sword, pickaxe, axe, and shovel in a player's hotbar.
This functionality would require:
- The tool belt functionality itself
- Customization screen for the tool belt, allowing players to change which actions are where.
- Additions to the API to support adding options for tool belt slots.
Whether this functionality should be handled by the server or not I'm not sure of. Here's the ups and downs I can think of for both:
Server-Handled:
+ Allows for proper syncing of items on the tool belt for other players in multiplayer to see without the client being able to lie (show one item and act like another).
- Would require servers to have Vivecraft to be functional.
Client-Handled:
+ Servers don't require Vivecraft.
- Showing of tool belt contents to other players is either prone to the client lying about it (telling the server they have action A mapped while actually performing action B), or not possible if this type of exploiting isn't tolerable.
Some extra questions:
- How do we handle mapped actions for mods the client has that the server doesn't? ImmersiveMC's plans for the tool belt in #315 here are the perfect example of this.
- How will it be modeled? Will it be modeled?
- Should we have a button push required for interactions with the tool belt?