How to mod a item ?

User avatar
aldobr
Member
 
Posts: 316
Joined: Sun Nov 25, 2012 05:46

How to mod a item ?

by aldobr » Sun Dec 16, 2012 17:47

I know how to add new node types,

but i am wondering now, how to mod new items ?

I want to add a Minetoon Dollar item to the game, but cant find a how to in the documentation...
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Sun Dec 16, 2012 17:50

Last edited by PilzAdam on Sun Dec 16, 2012 17:51, edited 1 time in total.
 

User avatar
aldobr
Member
 
Posts: 316
Joined: Sun Nov 25, 2012 05:46

by aldobr » Sun Dec 16, 2012 19:22

solved that already.

Now i want to access the player inventary when he punches some node.

i can get his inventary using on_punch(pos, node, puncher) then making local playerinv = puncher:get_inventary.

But while everything in a chest is placed at the "main" list, this doesnt look correct for the player inventary...
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 15 guests