Private zones

Magma
New member
 
Posts: 2
Joined: Tue Jul 24, 2012 15:43

Private zones

by Magma » Tue Jul 24, 2012 15:49

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.
 

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

by PilzAdam » Tue Jul 24, 2012 15:52

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))
 

Magma
New member
 
Posts: 2
Joined: Tue Jul 24, 2012 15:43

by Magma » Tue Jul 24, 2012 15:53

Thanks a lot, i will try it.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Tue Jul 24, 2012 16:05

look up node ownership
"Fuck the hat." - Paulie Gualtieri
 

tinoesroho
Member
 
Posts: 570
Joined: Fri Feb 17, 2012 21:55

by tinoesroho » Wed Jul 25, 2012 20:26

It's been done here. Problem solved, topic can be locked.
We are what we create.

I tinker and occasionally make (lousy) mods. Currently building an MMO subgame and updating mods. Pirate Party of Canada member. Sporadic author. 21 years old.

My github:
https://github.com/tinoesroho/
 


Return to WIP Mods

Who is online

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

cron