Page 1 of 1

[Mod] Interchangeable Hands [hands]

PostPosted: Mon Jan 02, 2017 18:55
by octacian
Image

Interchangeable Hands [hands]


This mod uses the function introduced in this pull request by TeTpaAka. Hands is mostly for demostration purposes for the reference of other modders or for players to mess around with. Keep in mind that the mod does not work on Minetest 0.4.14, as the feature was not introduced until Minetest 0.4.15.

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

The textures aren't very good, but it allows you to get a basic and functional overview of the new feature.

Chatcommand

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/sethand hands:grey
/sethand default:stick


The above example shows that the /sethand command works both with the hands introduced by the mod or with any other node or item already in the game. Remember to grant yourself the sethand privilege before attempting to use the chatcommand.

+ API

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Jan 02, 2017 19:08
by ExeterDad
Ohhh!
So in theory... One can register a new node (meshnode or nodebox) and map the player skin texture to it so the player can see a hand that matches their skin?

OMG! OMG! *runs in circles

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Jan 02, 2017 19:13
by octacian
ExeterDad wrote:So in theory... One can register a new node (meshnode or nodebox) and map the player skin texture to it so the player can see a hand that matches their skin?


Simply, yes. In fact, I think you can, not just in theory.

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Jan 02, 2017 19:37
by Fixerol
Finally!

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Jan 02, 2017 23:00
by whitephoenix
Powersuits minetest port anyone?

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Tue Jan 03, 2017 00:58
by octacian
whitephoenix wrote:Powersuits minetest port anyone?


Somebody requested this a while ago, once I finish MicroExpansion, I'll be on it if no one does before me :D

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Sat Jan 07, 2017 22:40
by Wuzzy
Nice demo!

Try this in Minetest Game:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
/sethand default:pick_diamond


:D

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Mar 27, 2017 15:55
by ABJ
Cool-looking mod.
Why a priv, tho?

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Mar 27, 2017 16:13
by octacian
ABJ wrote:Why a priv, tho?


A player could do /sethand default:pick_diamond and their hand would immediately have the same power as a diamond pickaxe.

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Mar 27, 2017 16:36
by ABJ
Wait...really? I thought it just changed the mesh........

Re: [Mod] Interchangeable Hands [hands]

PostPosted: Mon Mar 27, 2017 19:03
by octacian
Nope. It does more than just change the mesh. If it were possible I'd make it so that it only changes the mesh without the privilege and the tool capabilities if the player had the privilege.