[Mod] Interchangeable Hands [hands]

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

[Mod] Interchangeable Hands [hands]

by octacian » Mon Jan 02, 2017 18:55

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

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
Last edited by octacian on Tue Jan 03, 2017 05:00, edited 2 times in total.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
ExeterDad
Member
 
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
Location: New Hampshire U.S.A
In-game: ExeterDad

Re: [Mod] Interchangeable Hands [hands]

by ExeterDad » Mon Jan 02, 2017 19:08

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
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Interchangeable Hands [hands]

by octacian » Mon Jan 02, 2017 19:13

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.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
Fixer
Member
 
Posts: 866
Joined: Sun Jul 31, 2011 11:23
Location: Ukraine
IRC: Fixer
In-game: Fixer
 

User avatar
whitephoenix
Member
 
Posts: 19
Joined: Sun Jun 26, 2016 22:43
GitHub: whitephoenix0
IRC: whitephoenix
In-game: whitephoenix
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Interchangeable Hands [hands]

by octacian » Tue Jan 03, 2017 00:58

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
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

User avatar
Wuzzy
Member
 
Posts: 3241
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: [Mod] Interchangeable Hands [hands]

by Wuzzy » Sat Jan 07, 2017 22:40

Nice demo!

Try this in Minetest Game:
Code: Select all
/sethand default:pick_diamond


:D
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

ABJ
Member
 
Posts: 3015
Joined: Sun Jan 18, 2015 13:02
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
GitHub: ABJ-MV
In-game: ABJ
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Interchangeable Hands [hands]

by octacian » Mon Mar 27, 2017 16:13

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.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 

ABJ
Member
 
Posts: 3015
Joined: Sun Jan 18, 2015 13:02
Location: In Earth orbit, with a perigee of 1048 km and an apogee of 1337 km and an inclination of 69 degrees.
GitHub: ABJ-MV
In-game: ABJ
 

User avatar
octacian
Member
 
Posts: 593
Joined: Mon Dec 21, 2015 22:18
Location: BC, Canada
GitHub: octacian
IRC: octacian
In-game: octacian

Re: [Mod] Interchangeable Hands [hands]

by octacian » Mon Mar 27, 2017 19:03

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.
MicroExpansion, Working Computers, All Projects - Check out my YouTube channel! (octacian)
 


Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot] and 4 guests