Skip to content

Commit

Permalink
doc: Update node callback documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Oct 4, 2015
1 parent 7b01b94 commit 1f9c5a4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/lua_api.txt
Expand Up @@ -3219,14 +3219,17 @@ Definition tables
},

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
^ Not called for bulk node placement (i.e. schematics and VoxelManip)
^ default: nil ]]
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 ]]
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 ]]

after_place_node = func(pos, placer, itemstack, pointed_thing) --[[
Expand Down

0 comments on commit 1f9c5a4

Please sign in to comment.