I hate this mod:

Post Reply
Jordach
Member
Posts: 4534
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach
Location: Blender Scene

I hate this mod:

by Jordach » Post

http://pastebin.com/1WrZ9v5T

Says it all.

If you can fix it, I will thank you.

User avatar
cactuz_pl
Member
Posts: 876
Joined: Tue Jun 05, 2012 16:34
Location: Poland

by cactuz_pl » Post

I found! ...I think...

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'},
        }
})
Last edited by cactuz_pl on Mon Jul 23, 2012 20:44, edited 1 time in total.
Nope

sfan5
Moderator
Posts: 4095
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5
Location: Germany

by sfan5 » Post

He wants shapeless Receipes
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)

User avatar
cactuz_pl
Member
Posts: 876
Joined: Tue Jun 05, 2012 16:34
Location: Poland

by cactuz_pl » Post

sfan5 wrote:He wants shapeless Receipes
Ok, with "shapeless":

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

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>
}
Last edited by cactuz_pl on Tue Jul 24, 2012 08:19, edited 1 time in total.
Nope

User avatar
tkerwel
Member
Posts: 213
Joined: Fri Jan 13, 2012 07:35

by tkerwel » Post

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.
++++ Kung walang tiyaga, walang nilaga. ++++

User avatar
cactuz_pl
Member
Posts: 876
Joined: Tue Jun 05, 2012 16:34
Location: Poland

by cactuz_pl » Post

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:

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.
Last edited by cactuz_pl on Tue Jul 24, 2012 08:23, edited 1 time in total.
Nope

User avatar
tkerwel
Member
Posts: 213
Joined: Fri Jan 13, 2012 07:35

by tkerwel » Post

@cactuz_pl
thank you ....its always a pleasure to read your posts....

and one more thing an old man learned today...*gg*
++++ Kung walang tiyaga, walang nilaga. ++++

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests