Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Appears to not support shapeless crafts. Fix please. Otherwise, yes, this is undeniably cool.

Meow.

That is all.

27

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

I like it because of the easyness to create  complex craftable mods i make it you build it bit by bit, but with this you can build it in 1 go! +1

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Does this mod even work anymore?

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

I just updated the zip in the first post, so it works with 0.4.2+ now.

Take a look at my Candles Mod and Tricorder Mod, my Minetest Development Tree, and my server.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Haven't tried the mod yet, but one question: Does this also make the default (inventory) crafting grid 2 x 2? Or can LUA not modify the size of the inventory craft area yet? A 3 x 3 workbench sounds useless until this is possible as well, but hopefully it is now.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Not bad!

My Mods: Nuke Mod WorldEdit Particles and working on Mesecons
Subscribe me on YouTube if you like my Stuff
My Minetest Builds for Windows

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Unfortunately, it still does not support large shapeless recipes. Fix please?

Meow.

That is all.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

MirceaKitsune wrote:

Haven't tried the mod yet, but one question: Does this also make the default (inventory) crafting grid 2 x 2? Or can LUA not modify the size of the inventory craft area yet? A 3 x 3 workbench sounds useless until this is possible as well, but hopefully it is now.

There's now a some code (commented out by default) in the git version of the mod that will do this.

GloopMaster wrote:

Unfortunately, it still does not support large shapeless recipes. Fix please?

It works when I try it.

Take a look at my Candles Mod and Tricorder Mod, my Minetest Development Tree, and my server.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

darkrose wrote:

There's now a some code (commented out by default) in the git version of the mod that will do this.

Did you try to craft a torch in this 2x2 grid? For me this dont work (tried it in another mod).

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

PilzAdam wrote:

Did you try to craft a torch in this 2x2 grid? For me this dont work (tried it in another mod).

no, didn't try it at all, just put the code there so someone can mess about with it.

Take a look at my Candles Mod and Tricorder Mod, my Minetest Development Tree, and my server.

36 (edited by leo_rockway 2012-08-09 07:26:43)

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

PilzAdam wrote:
darkrose wrote:

There's now a some code (commented out by default) in the git version of the mod that will do this.

Did you try to craft a torch in this 2x2 grid? For me this dont work (tried it in another mod).

This makes sense. Imagine the default crafting area grid like this:

0|1|2
------
3|4|5
------
6|7|8

The torch recipe expects the coal to be on the stick.position - 3. So if you put your stick in 7, the coal has to go in 4.

Now, with the revamped crafting area grid you have something like this:

0|1
----
2|3

So to make a torch, the recipe remains; hence, you'd have to put your stick in the bottom right hand corner (3) and the other one in stick.position - 3 which happens to be the upper left hand corner. This obviously breaks the recipe. I'm not sure how to fix this issue with the API or if it is even possible. However, a grid of 3x2 "solves" this and it has pretty much the same [limited] functionality than the 2x2 grid (eg., you can't craft tools).
So, basically, something like this: list[current_player;craft;3,1;3,2;]

There's another workbench written in C++ that works exactly in the way the MC one does, by the way, but using mods is better, in my opinion.


I haven't tried the bigger workbenches yet, but I'm guessing they might have the same problem I described for the 2x2 craft area. I hope I'm wrong.

EDIT: I just tried the 4x4 workbench and it works just fine, destroying my whole theory o.o Meh... well, 3x2 still works fine.

37 (edited by kozec 2012-08-10 16:57:45)

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Hi!
I belvieve that I found a bug: If you craft anything on workbench and then place resulting item to inventory slot which is already occupied, item from that slot just disappears.

// edit:
Also, there is possible to take only half of stack produced in workbench, what causes other half to disappear.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

kozec wrote:

Hi!
I belvieve that I found a bug: If you craft anything on workbench and then place resulting item to inventory slot which is already occupied, item from that slot just disappears.

Yes, I noticed this too. I forgot to mention it.

39 (edited by kozec 2012-08-10 21:07:31)

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Ok, I think I workarounded that half of stack disappearing problem. I took a look on how is this solved in minecraft and it's simply not possible to take half of crafted stack there - both buttons take it all.

And although I don't know if its possible to modify what is being picked up, it's possible to disallow taking only part of stack simply by modifiing allow_metadata_inventory_take functions in this way:

    allow_metadata_inventory_take = function(pos, listname, index, stack, player)
        if listname == "dst" and stack:get_count() then
            local meta = minetest.env:get_meta(pos)
            local inv = meta:get_inventory()
            if stack:get_count() < inv:get_stack("dst", 1):get_count() then
                -- User tries to take only part of crafted stack. Bad thing.
                return 0
            end
        end
        return stack:get_count()
    end,

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

i really like this mod, i might port it into an inventory_plus mod so you can have your bigger craft table with you

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

cornernote wrote:

have your bigger craft table with you

disagree. you shouldn't do that. that ruins the point

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

i thought the point was to have different sized craft tables

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

i kinna agree with Mito ,make the craft tables tables you you need a work shop that way you need to go to it to use them ,and have the normal one for your quick craft for tools and the bigger ones for major projects like armor and the heavy duty tools

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Can't u just pickup your big workbench and put it down anywhere you want?

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

darkrose does not seem to be around so I have forked this mod and updated it to work with 0.4.3:
https://github.com/cornernote/minetest-workbench

If you notice any issues let me know by replying here.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Even at this day, MineTest still doesn't officially have a workbench and offers the 3 x 3 grid from the inventory screen :( I hope this mod will become official soon.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Minetest doesn't have a lot of official things.  It does however officially have a really simple modding API that allows us to make great non-official mods.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

Any way to fix the problem with having a 2x2 crafting area? Otherwise having a 3x3 workbench doesn't make any sense.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

leo_rockway wrote:

Any way to fix the problem with having a 2x2 crafting area? Otherwise having a 3x3 workbench doesn't make any sense.

Still curious about this too. I heard LUA should currently allow this but I haven't tested personally.

Re: [Mod] Workbench (3x3,4x4,5x5) [workbench]

yeah, i fixed that last night (just forgot to tell anyone about it).  in minetest.conf add this line:

inventory_craft_small=true