Page 1 of 1

How to mod a item ?

PostPosted: Sun Dec 16, 2012 17:47
by aldobr
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...

PostPosted: Sun Dec 16, 2012 17:50
by PilzAdam

PostPosted: Sun Dec 16, 2012 19:22
by aldobr
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...