Disable Offhand in Crafting Dead
0xE69 opened this issue · 7 comments
Add an ability to disable the offhand in Crafting Dead through the server configuration files.
We could make it like that:
https://gist.github.com/H0Imes/0c32bdc0bf80846aea19963a192a357a
Can be achieved using a Mixin
https://gist.github.com/H0Imes/0c32bdc0bf80846aea19963a192a357a
Issue is, there are multiple other places you can swap hands, you can also change the default main hand to be the left hand which also causes rendering issues. It all boils down to two underlying problems - firstly, people shouldn't be able to hold two guns at once and secondly, guns aren't rendered correctly when in the left hand.
Instead of using the "Y" or "Z" keys to open the Crafting Dead inventory, we can change the default settings to let players use the "E" key instead. This makes the controls easier for players and solves the problem of them putting items in the offhand slot. The only remaining issue is that players can still access the offhand slot when they are in Creative mode (which has a different inventory). However, this isn’t a big problem since players shouldn’t have access to Creative mode on official servers anyway.
That would only be a solution for official servers and is also a bit extreme completely preventing off-hand usage. We need a solution that still allows the off-hand to be used, just not for guns, especially for the players outside the official modpack as they won't want a mod interfering with their inventory or off-hand.