minetest.override_item

From Minetest Developer Wiki
Jump to: navigation, search

Syntax

minetest.override_item(name, redefinition)

Description

Available in 0.4.10+

Overrides fields of an item registered with minetest.register_node/minetest.register_tool/minetest.register_craftitem. Item must already be defined, (opt)depend on the mod defining it.

Example

minetest.override_item("default:mese", {
    light_source = LIGHT_MAX,
    groups = {unbreakable=1},
})
Personal tools
Namespaces

Variants
Actions
Navigation
API
Toolbox