minetest.register on placenode

Description

 * — position of placed node
 * — node
 * — ObjectRef
 * — node
 * — ItemStack
 * — pointed_thing (only in 0.4.10+)

Called when a node has been placed.

Return a true value to indicate modification of itemstack (if any) has been handled by the callback. Otherwise (return nothing,, or  ) the caller will remove one item from itemstack. Note that it is not generally possible for one  callback to know what values were returned by others, or by a node's after_place_node callback (one should thus be careful to avoid double-removal of items).