1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-21 11:55:43 +02:00

Removing changes

This commit is contained in:
Foghrye4
2016-04-19 21:35:18 +04:00
parent 6494e33947
commit db71a40ce0

View File

@@ -945,10 +945,7 @@ Displays a horizontal bar made up of half-images.
* `number`: Number of items in the inventory to be displayed.
* `item`: Position of item that is selected.
* `direction`
<<<<<<< HEAD
* `offset`: offset in pixels from position.
=======
>>>>>>> bca616493783b18b2f280d4773cb4be41d01c434
### `waypoint`
Displays distance to selected world position.
@@ -1874,10 +1871,7 @@ Call these functions only at load time!
* `modifier`: when true, the function should return the actual hp_change.
Note: modifiers only get a temporary hp_change that can be modified by later modifiers.
modifiers can return true as a second argument to stop the execution of further functions.
<<<<<<< HEAD
Non-modifiers receive the final hp change calculated by the modifiers.
=======
>>>>>>> bca616493783b18b2f280d4773cb4be41d01c434
* `minetest.register_on_respawnplayer(func(ObjectRef))`
* Called when player is to be respawned
* Called _before_ repositioning of player occurs
@@ -1889,36 +1883,6 @@ Call these functions only at load time!
* Called when a player joins the game
* `minetest.register_on_leaveplayer(func(ObjectRef))`
* Called when a player leaves the game
<<<<<<< HEAD
=======
* `minetest.register_on_inventory_move_item(func(inv_from,list_from,slot_from,inv_to,list_to,slot_to,stack,amount,player)`
* Called when a player move items between inventories using GUI (including crafting grid).
* `inv_from`: InvRef of inventory from which item was extracted.
* `list_from`: name of a list, where from stack extracted.
* `slot_from`: integer, speak by itself
* `inv_to`: InvRef of inventory to which item was dropped.
* `list_to`: name of a list, where to stack dropped.
* `slot_to`: integer, speak by itself
* `stack`: ItemStack of a stack moved
* `amount`: integer, amount of items, which was sucessfully transported
* `player`: ObjectRef of the player
* `minetest.register_on_inventory_add_item(func(inv_to,list_to,stack,stack_left,player)`
* Called when a player recive item via digging or from item entity or when `player:add_item(list, item)` called.
* `inv_to`: InvRef of inventory to which item was added.
* `list_to`: name of a list, where stack was added.
* `slot_to`: integer, speak by itself
* `stack`: ItemStack of a stack added
* `stack_left`: ItemStack of a stack which was left on ground
* `player`: ObjectRef of the player
* `minetest.register_on_inventory_drop_item(func(inv_from,list_from,slot_from,stack,player, dropped_pos)`
* Called when a player drop item on ground
* `inv_from`: InvRef of inventory from which item was dropped.
* `list_from`: name of a list, where from stack dropped. Usually 'main'.
* `slot_from`: integer, speak by itself
* `stack`: ItemStack of a stack dropped
* `player`: ObjectRef of the player
* `dropped_pos`: a table `{x=x_pos, y=y_pos, z=z_pos}`, where values contain absolute position of new item object.
>>>>>>> bca616493783b18b2f280d4773cb4be41d01c434
* `minetest.register_on_cheat(func(ObjectRef, cheat))`
* Called when a player cheats
* `cheat`: `{type=<cheat_type>}`, where `<cheat_type>` is one of: