This is a port of mcl_offhand for use with any other Minetest subgame. Instead of using the offhand as a shield slot, this mod lets you use it for any item of your choice. You can switch items between hands by pressing a configurable button (by default aux1 or E). When using a tool, press right-click to use the action of your offhand. This lets you place torches and other nodes without having to put away your sword or pickaxe.
This mod should work with any game and configuration. However, the following mods are recommended to make the most out of it:
- visible_wielditem - Attaches a 3D preview of the held item in your main hand. Recommended for visual consistency. Disable the wieldview mod if you also use 3d_armors.
- wielded_light - Registers held items as light sources. Also works for items in your offhand. You might also be interested in the 3d_armor_light extension.
Credit & License
This mod is licensed under GNU GPL v3 like the original. Check Mineclone 2's Credit section for information on the original authors.
wielditem.lua is forked from visible_wielditem by appgurueu. That specific file is dual-licensed under GNU GPL v3 as well as MIT.
Texture pack in the screenshot is Soothing32 (CC BY SA-4.0).