diff options
author | Bluebird <bluebird.greycoat@gmail.com> | 2019-12-18 12:21:24 -0600 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-12-18 19:21:24 +0100 |
commit | 80af58c8c5a68fc7ff66a730204ffa933e89a305 (patch) | |
tree | a1ce729c9a94e2340570a3c010b43f91b5082079 /doc | |
parent | 39a1e6660ecfa5a102b00ca305ebf929821f7214 (diff) | |
download | minetest-80af58c8c5a68fc7ff66a730204ffa933e89a305.tar.gz minetest-80af58c8c5a68fc7ff66a730204ffa933e89a305.tar.bz2 minetest-80af58c8c5a68fc7ff66a730204ffa933e89a305.zip |
Make core.item_place_node return position of placed node. (#7713)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index ca59aad95..7663b5c9e 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -4859,7 +4859,8 @@ Defaults for the `on_place` and `on_drop` item definition functions * `param2` overrides `facedir` and wallmounted `param2` * `prevent_after_place`: if set to `true`, `after_place_node` is not called for the newly placed node to prevent a callback and placement loop - * returns `itemstack, success` + * returns `itemstack, position` + * `position`: the location the node was placed to. `nil` if nothing was placed. * `minetest.item_place_object(itemstack, placer, pointed_thing)` * Place item as-is * returns the leftover itemstack @@ -4869,7 +4870,8 @@ Defaults for the `on_place` and `on_drop` item definition functions * Calls `on_rightclick` of `pointed_thing.under` if defined instead * **Note**: is not called when wielded item overrides `on_place` * `param2` overrides facedir and wallmounted `param2` - * returns `itemstack, success` + * returns `itemstack, position` + * `position`: the location the node was placed to. `nil` if nothing was placed. * `minetest.item_drop(itemstack, dropper, pos)` * Drop the item * returns the leftover itemstack |