Page 1 of 1

I hate this mod:

PostPosted: Mon Jul 23, 2012 16:39
by Jordach
http://pastebin.com/1WrZ9v5T

Says it all.

If you can fix it, I will thank you.

PostPosted: Mon Jul 23, 2012 20:43
by cactuz_pl
I found! ...I think...

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_craft({
        output = 'metals:half_ingot 2',
        type = "shapeless",    <--------------------------Remove this line...
        recipe = {
                {'default:steel_ingot'},
        }
})
 
minetest.register_craft({
        output = 'default:steel_ingot',
        type = "shapeless",<-------------------------------- ...and this one...
        recipe = {
                {'metals:half_ingot', 'metals:half_ingot'},
        }
})

PostPosted: Mon Jul 23, 2012 21:46
by sfan5
He wants shapeless Receipes

PostPosted: Tue Jul 24, 2012 07:39
by cactuz_pl
sfan5 wrote:He wants shapeless Receipes


Ok, with "shapeless":
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_craft({
    type = "shapeless",
        output = 'metals:half_ingot 2',
        recipe = {
                "default:steel_ingot",
        }
})
 
minetest.register_craft({
        type = "shapeless",
    output = 'default:steel_ingot',
        recipe = {
                "metals:half_ingot", "metals:half_ingot",
        }
})
 


You have added unnecessary {} in recipe. In type = "shapeless" we don't use {} inside "recipe" part.

From lua_api.txt
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
Recipe for register_craft (shapeless)
{
    type = "shapeless",
    output = 'mushrooms:mushroom_stew',
    recipe = {
        "mushrooms:bowl",
        "mushrooms:mushroom_brown",
        "mushrooms:mushroom_red",
    },
    replacements = <optional list of item pairs,
                    replace one input item with another item on crafting>
}

PostPosted: Tue Jul 24, 2012 07:57
by tkerwel
can somebody explain this slowly and understandeble for an old man like me...

whats a shapeless recipe? whats the difference between a normal and a shapeless recipe.

when i heat "shapeless", i was thinking abt a non-cube based output in minetest and i thought this is not working within minetest.

PostPosted: Tue Jul 24, 2012 08:08
by cactuz_pl
tkerwel wrote:can somebody explain this slowly and understandeble for an old man like me...

whats a shapeless recipe? whats the difference between a normal and a shapeless recipe.

when i heat "shapeless", i was thinking abt a non-cube based output in minetest and i thought this is not working within minetest.


Example:
1.Normal recipe (without "shapeless")
Mese tool:
{mese,mese,mese}'
{nothing,stick,nothing},
{nothing,stick,nothing},

To craft this one you must put mese and sticks exactly in this shape. If you try put it like this(up side down):
{nothing,stick,nothing},
{nothing,stick,nothing},
{mese,mese,mese}'
It will not work.

2. Shapeless recipe
Mese tool:
{mese,mese,mese}'
{nothing,stick,nothing},
{nothing,stick,nothing},
For craft this tool with "shapeless" type craft, you must just put 3 mese and 2 sticks, no mater how, in what shape, that's why it was named "shapeless".

That was only example of "shapeless", because it should look like this:
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
type = "shapeless",
    output = 'mushrooms:mushroom_stew',
    recipe = {
        "mushrooms:bowl",
        "mushrooms:mushroom_brown",
        "mushrooms:mushroom_red",
    },

As you see bowl can be under mushrooms ,between or on the side of them, components can by placed in horizontal, vertical or even oblique line, it is no mater in "shapeless".

Very similar to normal craft, but without curly brakes {} inside recipe section, which in normal craft means horizontal rows of recipe.

PostPosted: Tue Jul 24, 2012 08:23
by tkerwel
@cactuz_pl
thank you ....its always a pleasure to read your posts....

and one more thing an old man learned today...*gg*