@@ -2113,7 +2113,7 @@ Examples
2113
2113
list[current_player;main;0,3.5;8,4;]
2114
2114
list[current_player;craft;3,0;3,3;]
2115
2115
list[current_player;craftpreview;7,1;1,1;]
2116
-
2116
+
2117
2117
Version History
2118
2118
---------------
2119
2119
@@ -4587,6 +4587,10 @@ Call these functions only at load time!
4587
4587
the puncher to the punched.
4588
4588
* `damage`: Number that represents the damage calculated by the engine
4589
4589
* should return `true` to prevent the default damage mechanism
4590
+ * `minetest.register_on_rightclickplayer(function(player, clicker))`
4591
+ * Called when a player is right-clicked
4592
+ * `player`: ObjectRef - Player that was right-clicked
4593
+ * `clicker`: ObjectRef - Object that right-clicked, may or may not be a player
4590
4594
* `minetest.register_on_player_hpchange(function(player, hp_change, reason), modifier)`
4591
4595
* Called when the player gets damaged or healed
4592
4596
* `player`: ObjectRef of the player
@@ -7641,12 +7645,12 @@ Used by `minetest.register_node`.
7641
7645
-- intensity: 1.0 = mid range of regular TNT.
7642
7646
-- If defined, called when an explosion touches the node, instead of
7643
7647
-- removing the node.
7644
-
7648
+
7645
7649
mod_origin = "modname",
7646
7650
-- stores which mod actually registered a node
7647
7651
-- if it can not find a source, returns "??"
7648
7652
-- useful for getting what mod truly registered something
7649
- -- example: if a node is registered as ":othermodname:nodename",
7653
+ -- example: if a node is registered as ":othermodname:nodename",
7650
7654
-- nodename will show "othermodname", but mod_orgin will say "modname"
7651
7655
}
7652
7656
0 commit comments