12Me21 wrote:This mod makes it so you can't break trees with your bare hand.
minetest.register_node (":nodename:modname", {...12Me21 wrote:I am almost done with the textures (just need to make the sword texture) and mostly done with the code, I just need to make a way for you to not be able to break trees with your hand. (usually if you want to modify an existing node/tool/craftitem you do: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 (":nodename:modname", {...
but the name of the hand is ":", and I'm not sure what to do to that ("::" I guess))
PilzAdam wrote:12Me21 wrote:I am almost done with the textures (just need to make the sword texture) and mostly done with the code, I just need to make a way for you to not be able to break trees with your hand. (usually if you want to modify an existing node/tool/craftitem you do: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 (":nodename:modname", {...
but the name of the hand is ":", and I'm not sure what to do to that ("::" I guess))
No, the name of the hand is "" (empty string). If you want to override it, then do it as the default mod in minetest_game: ":"
Btw: Its "modname:nodename", not the other way round.
Users browsing this forum: No registered users and 2 guests