Page 1 of 1

Private zones

PostPosted: Tue Jul 24, 2012 15:49
by Magma
Hi all. Could someone help me to find function that happens when player destroy/place block?
I want to do primitive private zones on my own server.


Sorry for my english, im not a native speaker.

PostPosted: Tue Jul 24, 2012 15:52
by PilzAdam
You can do this with the moding api.
The functions are
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
minetest.register_on_placenode(func(pos, newnode, placer, oldnode))

and
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
minetest.register_on_dignode(func(pos, oldnode, digger))

PostPosted: Tue Jul 24, 2012 15:53
by Magma
Thanks a lot, i will try it.

PostPosted: Tue Jul 24, 2012 16:05
by mauvebic
look up node ownership

PostPosted: Wed Jul 25, 2012 20:26
by tinoesroho
It's been done here. Problem solved, topic can be locked.