Page 1 of 1

[MOD] Block of Xeprione [BOX] [WIP]

PostPosted: Sat Sep 21, 2013 09:26
by Ragnar
The development of BOX has begun.
[spoiler=What is BOX?]
BOX is the Minetest mod that will have most of the stuff that Wrath of Xeprione will have.
Wrath of Xeprione is a " Zelda - A Link to the past " -like game that is being developed by GNADev
The project is currently stopped until further notice.
[/spoiler]

Code: GNADev|zRokh [ME]
Textures: Currently nobody.
Sounds: Currently nobody.

PostPosted: Tue Sep 24, 2013 13:23
by Ragnar
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]

PostPosted: Tue Sep 24, 2013 13:30
by jin_xi
missing a comma between the two tables in the item subtable

PostPosted: Wed Sep 25, 2013 07:51
by Ragnar
oh..... thanks, i had the same problem with Terror :D
but i fixed that :D