mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Add minetest.override_item
This commit is contained in:
parent
8966c16ad2
commit
574ed6a363
2 changed files with 22 additions and 0 deletions
|
@ -1189,6 +1189,10 @@ minetest.register_alias(name, convert_to)
|
|||
minetest.register_craft(recipe)
|
||||
minetest.register_ore(ore definition)
|
||||
minetest.register_decoration(decoration definition)
|
||||
minetest.override_item(name, redefinition)
|
||||
^ Overrides fields of an item registered with register_node/tool/craftitem.
|
||||
^ Note: Item must already be defined, (opt)depend on the mod defining it.
|
||||
^ Example: minetest.override_item("default:mese", {light_source=LIGHT_MAX})
|
||||
|
||||
Global callback registration functions: (Call these only at load time)
|
||||
minetest.register_globalstep(func(dtime))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue