Interchangeable Hands [hands]
- Code: MIT (see LICENSE), Media: CC BY-SA 3.0
- GitHub Repository
- Download
The mod registers a single chatcommand (`/sethand`) and privilege (`sethand`), allowing the player to set their own hand to any node or item. Hands also has a simple API with which two example hands are registered as listed below.
Alternate Hands
- hands:grey
- hands:space
Chatcommand
Code: Select all
/sethand hands:grey
/sethand default:stick
Spoiler
Though I highly doubt that this mod would actually need an API and be expanded as a stand-alone mod, I decided to provide one in case somebody wanted to. Overall, it's pretty single. The only required parameter is the itemstring / "handstring".
Code: Select all
hands.register_hand(<itemstring>, {
wield_image = <wield image>,
wield_scale = <wield scale>,
tool_capabilities = <tool capabilities>,
})
API Examples
Simplistic:
Code: Select all
hands.register_hand("hands:space", {
wield_image = "hands_space.png",
})
Code: Select all
hands.register_hand("hands:space", {
wield_image = "hands_space.png",
wield_scale = {x=1,y=1,z=2.5},
tool_capabilities = {
full_punch_interval = 0.9,
max_drop_level = 0,
groupcaps = {
crumbly = {times={[2]=3.00, [3]=0.70}, uses=0, maxlevel=1},
snappy = {times={[3]=0.40}, uses=0, maxlevel=1},
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0}
},
damage_groups = {fleshy=1},
}
})