I know I can read the definitions of pretty much all nodes, items, tools by using e.g. minetest.registered_tools.
However, this seems to be not the case for the hand (default tool). The identifier for the hand is the colon.
I know you can define it with something like this:
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_item(":", definition)
However, reading the information back seems not to be possible. I have tried to read the following entries but each of them were nil:
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.registered_tools[":"]
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.registered_items[":"]
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.registered_craftitems[":"]
My question is: How can I read the tool or item definition of the hand?