I have a problem in my code that i can't fix... :/
The code is below:
[spoiler=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
-- The ore of Xeprionite
minetest.register_node("box:xeprionite_ore", {
tiles = {
"box_obsidian.png^box_xeprionite_ore.png"
},
description = "Ore of Xeprionite",
groups = {cracky=3, stone=3},
is_ground_content = true,
drop = {
max_items = 1,
items = {
{
items = {"default:coal_lump"},
rarity = 1
}
{
items = {"box:xeprionite"},
rarity = 5
}
}
},
})
minetest.register_ore({
clust_size = 25,
height_min = -31000,
height_max = 0,
ore_scarcity = 30*30*30,
clus_num_ores = 1,
ore_type = "scatter",
ore = "box:xeprione_ore",
wherein = "default:stone"
})
minetest.register_alias("xeprionite_ore", "box:xeprionite_ore")
-- Xeprionite
minetest.register_craftitem("box:xeprionite", {
description = "Xeprionite",
inventory_image = "box_xeprionite.png"
})
minetest.register_alias("xeprionite", "box:xeprionite")
[/spoiler]
When launching the game with this mod installed i get the error below:
[spoiler=Error]
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: ModError: Failed to load and run
/home/zrokh/Desktop/minetest/bin /mods/box/init.lua
[/spoiler]