A bit of a bug...
Don't kill me. I'm a noob. I don't exactly make my code very readable either...
Just tell me what to do to make this error message not appear:
init.lua:1: function arguments expected near ','
Here's my code:
Just tell me where the problem is and what is syntactically wrong there.
I just started minetest modding today. :P
Just tell me what to do to make this error message not appear:
init.lua:1: function arguments expected near ','
Here's my code:
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(“superpotato:potato”, {
description = “Potato”,
inventory_image = “nonspotato”
wield_image = “nonspotato”,
wield_scale = 50,
stack_max = 99,
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
itemstack.take_item()
set_hp(get_hp+10)
return itemstack
minetest.register_craftitem("superpotato:superpotato", {
description = "Le Super Potato",
inventory_image = "superpotato",
wield_image = "superpotato",
wield_scale =50,
stack_max = 1,
liquids_pointable = false
on_use = function(itemstack, user, pointed_thing)
itemstack.take_item()
math.randomseed(os.time())
hp_max = hp_max+random(5)
set_hp(hp_max)
return itemstack
})
minetest.register_craft({
type = "fuel",
recipe = "supercoal:supercoal",
burntime = 20
})
minetest.register_craft({
output = 'superpotato:superpotato 2',
recipe = {{'default:diamond', 'default:gold','default:coal'},
{'default:mese', 'superpotato:potatoblock', 'default:wood'},
{default:steel'', 'default:dirt', 'default:sand'},}})
Just tell me where the problem is and what is syntactically wrong there.
I just started minetest modding today. :P