diff options
author | ShadowNinja <shadowninja@minetest.net> | 2014-01-13 19:28:55 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2014-01-13 21:41:00 -0500 |
commit | 574ed6a363328dcfa477b1779f3d9491322d96b7 (patch) | |
tree | 48d49020856319d7f4f669fd94dc3026b02089f2 /doc/lua_api.txt | |
parent | 8966c16ad298f94be1f4542afa6b081a1d286eda (diff) | |
download | minetest-574ed6a363328dcfa477b1779f3d9491322d96b7.tar.gz minetest-574ed6a363328dcfa477b1779f3d9491322d96b7.tar.bz2 minetest-574ed6a363328dcfa477b1779f3d9491322d96b7.zip |
Add minetest.override_item
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 8bd83995e..40dace9da 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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)) |