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
ERROR[main]: ========== ERROR FROM LUA ===========
ERROR[main]: Failed to load and run script from
ERROR[main]: C:\Users\Bruno\Desktop\minetest-0.4.7\bin\..\mods\pc\init.lua:
ERROR[main]: ...ers\Bruno\Desktop\minetest-0.4.7\bin\..\mods\pc\init.lua:5: ']' expected near ','
ERROR[main]: =======END OF ERROR FROM LUA ========
ERROR[main]: Server: Failed to load and run C:\Users\Bruno\Desktop\minetest-0.4.7\bin\..\mods\pc\init.lua
ERROR[main]: ModError: Failed to load and run C:\Users\Bruno\Desktop\minetest-0.4.7\bin\..\mods\pc\init.lua
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
local function updateCondenser(meta)
local inv = meta:get_inventory()
invsize [8,9;]
list [contexto; principal; 0,0; 8,4;]
list [current_player; principal; 0,5; 8,4;]
return formspec
end
minetest.register_node("pc:computador", {
description = "Computador",
tiles = {"computador.png"},
paramtype = "light",
paramtype2 = "facedir",
inventory_image = "computador.png",
is_ground_content = true,
groups = {tree=3,choppy=3,oddly_breakable_by_hand=5,flammable=3},
sounds = default.node_sound_glass_defaults(),
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
meta:set_string("formspec", updateCondenser(meta))
end,
})
What is missing to finish?