mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Item meta pointing range (#14347)
This commit is contained in:
@@ -2560,6 +2560,8 @@ Some of the values in the key-value store are handled specially:
|
||||
0 = default, 1 = left / up, 2 = middle, 3 = right / down
|
||||
The default currently is the same as right/down.
|
||||
Example: 6 = 2 + 1*4 = middle,up
|
||||
* `range`: Overrides the pointing range
|
||||
Example: `meta:set_float("range", 4.2)`
|
||||
|
||||
Example:
|
||||
|
||||
@@ -5397,6 +5399,8 @@ Utilities
|
||||
dynamic_add_media_filepath = true,
|
||||
-- L-system decoration type (5.9.0)
|
||||
lsystem_decoration_type = true,
|
||||
-- Overrideable pointing range using the itemstack meta key `"range"` (5.9.0)
|
||||
item_meta_range = true,
|
||||
}
|
||||
```
|
||||
|
||||
@@ -8980,6 +8984,7 @@ Used by `minetest.register_node`, `minetest.register_craftitem`, and
|
||||
|
||||
range = 4.0,
|
||||
-- Range of node and object pointing that is possible with this item held
|
||||
-- Can be overridden with itemstack meta.
|
||||
|
||||
liquids_pointable = false,
|
||||
-- If true, item can point to all liquid nodes (`liquidtype ~= "none"`),
|
||||
|
Reference in New Issue
Block a user