minetest.register_node("default:chest",...)
LorenzoVulcan wrote:Yes,override.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("default:chest",...)
in ... node properties.
Just overwrite the registration.
rubenwardy wrote:
minetest.register_node(" : default:chest",...)
remember the :
LorenzoVulcan wrote:rubenwardy wrote:
minetest.register_node(" : default:chest",...)
remember the :
If you want to overwrite the node you must give a name that's equal to original node,so you need "default:chest",
rubenwardy wrote:LorenzoVulcan wrote:rubenwardy wrote:
minetest.register_node(" : default:chest",...)
remember the :
If you want to overwrite the node you must give a name that's equal to original node,so you need "default:chest",
:default:chest
and
default:chest
are the same names, ":" is the override character.
rubenwardy wrote:He is accessing it from another mod.
Surely he needs it?
minetest.registered_nodes["default:chest"].blahblah = blahblahblah;
LorenzoVulcan wrote:rubenwardy wrote:LorenzoVulcan wrote:If you want to overwrite the node you must give a name that's equal to original node,so you need "default:chest",
:default:chest
and
default:chest
are the same names, ":" is the override character.
You don't need to put ":" to override them.
Users browsing this forum: No registered users and 9 guests