mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
doc: Update node callback documentation
This commit is contained in:
parent
7b01b94c6b
commit
1f9c5a4a7b
@ -3219,14 +3219,17 @@ Definition tables
|
|||||||
},
|
},
|
||||||
|
|
||||||
on_construct = func(pos), --[[
|
on_construct = func(pos), --[[
|
||||||
^ Node constructor; always called after adding node
|
^ Node constructor; called after adding node
|
||||||
^ Can set up metadata and stuff like that
|
^ Can set up metadata and stuff like that
|
||||||
|
^ Not called for bulk node placement (i.e. schematics and VoxelManip)
|
||||||
^ default: nil ]]
|
^ default: nil ]]
|
||||||
on_destruct = func(pos), --[[
|
on_destruct = func(pos), --[[
|
||||||
^ Node destructor; always called before removing node
|
^ Node destructor; called before removing node
|
||||||
|
^ Not called for bulk node placement (i.e. schematics and VoxelManip)
|
||||||
^ default: nil ]]
|
^ default: nil ]]
|
||||||
after_destruct = func(pos, oldnode), --[[
|
after_destruct = func(pos, oldnode), --[[
|
||||||
^ Node destructor; always called after removing node
|
^ Node destructor; called after removing node
|
||||||
|
^ Not called for bulk node placement (i.e. schematics and VoxelManip)
|
||||||
^ default: nil ]]
|
^ default: nil ]]
|
||||||
|
|
||||||
after_place_node = func(pos, placer, itemstack, pointed_thing) --[[
|
after_place_node = func(pos, placer, itemstack, pointed_thing) --[[
|
||||||
|
Loading…
Reference in New Issue
Block a user