Page 1 of 2

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

PostPosted: Mon Jun 04, 2012 04:46
by darkrose
Adds workbenches (crafting tables) with 3x3, 4x4, and 5x5 crafting grids, so bring on the complicated recipes!

This uses the new api, so requires version 0.4.2-rc1 or later.

Image

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
CRAFTING:

3x3 workbench:

wood    wood

wood    wood


4x4 workbench:

stone    stone    stone

wood    wood    wood

wood    wood    wood


5x5 workbench:

steel_ingot    steel_ingot    steel_ingot    steel_ingot

wood        wood        wood        wood

wood        wood        wood        wood

wood        wood        wood        wood


mese (as a 5x5 example):

steelblock    steelblock    steelblock    steelblock    steelblock

steelblock    steelblock    steelblock    steelblock    steelblock

steelblock    steelblock    steelblock    steelblock    steelblock

steelblock    steelblock    steelblock    steelblock    steelblock

steelblock    steelblock    steelblock    steelblock    steelblock



Code: LGPLv2.1/later, textures: WTFPL

Mod dependencies: default

Download: workbench 0.2Updated to work with 0.4.2rc1
Git: Darkrose's minetest_mods github repository

PostPosted: Mon Jun 04, 2012 09:35
by Calinou
Ahah, nice idea! But I like 3x3 inventory crafting.

PostPosted: Mon Jun 04, 2012 09:53
by darkrose
So do I, but I figured if I create a bigger crafting grid someone'll make use of it. Plus I was testing the nodemetadata changes. :)

PostPosted: Mon Jun 04, 2012 11:44
by jordan4ibanez
ahh very nice mate!

PostPosted: Mon Jun 04, 2012 11:49
by LolManKuba
Theres not much for 3x3 workbench because of the inventory workbench

PostPosted: Mon Jun 04, 2012 13:02
by mauvebic
could be very useful for me - after 100 or so recipes 3x3 only provides so many combinations lol

PostPosted: Mon Jun 04, 2012 16:34
by NakedFury
LolManKuba wrote:Theres not much for 3x3 workbench because of the inventory workbench


To counter that items could be made to require specific workbenches depending on item type. Sort of like how in Skyrim you need different tables to craft different type of items.

A wood working table
A leather working
A metal specific table
A cooking table

The player inventory would be used for the most primitive items: Wood and Stone tools, transforming from tree to wood, and other things that would need more special items to work with.

PostPosted: Mon Jun 04, 2012 21:45
by InfinityProject
wait, can the init.lua support more than 9 crafting slots? I tried to make a recipe with 4 rows (12 slots) but the game wouldnt start with an lua error every time.

PostPosted: Mon Jun 04, 2012 22:22
by minetesting
InfinityProject wrote:wait, can the init.lua support more than 9 crafting slots? I tried to make a recipe with 4 rows (12 slots) but the game wouldnt start with an lua error every time.


I get the same error, i think..

PostPosted: Tue Jun 05, 2012 04:23
by darkrose
InfinityProject wrote:wait, can the init.lua support more than 9 crafting slots? I tried to make a recipe with 4 rows (12 slots) but the game wouldnt start with an lua error every time.


I've tested 4x4 and 5x5 recipes, and they work fine with the new api.

PostPosted: Tue Jun 05, 2012 09:07
by Topywo
Yes, the mod works in the latest version. At least when I used (smooth) stone instead of cobble...

Thank you!

PostPosted: Tue Jun 05, 2012 16:11
by InfinityProject
Was the problem thatI did 12 slots instead of 16?

PostPosted: Tue Jun 05, 2012 17:33
by minetesting
oh it is working for me now that i've upgraded to latest.

PostPosted: Wed Jun 06, 2012 15:55
by kddekadenz
mauvebic wrote:could be very useful for me - after 100 or so recipes 3x3 only provides so many combinations lol


possible combinations = number of blocks + 1 (nothing) ^ 9

e.g. 15 different blocks -> (15 + 1) ^ 9 = 68719476736 combinations!

PostPosted: Wed Jun 06, 2012 21:07
by Jordach
kddekadenz wrote:
mauvebic wrote:could be very useful for me - after 100 or so recipes 3x3 only provides so many combinations lol


possible combinations = number of blocks + 1 (nothing) ^ 9

e.g. 15 different blocks -> (15 + 1) ^ 9 = 68719476736 combinations!

Now madblocks will become "mad".

PostPosted: Thu Jun 21, 2012 14:55
by MirceaKitsune
Very nice mod, I should try it soon. I'm still waiting for a workbench to be added into MineTest officially, so it works the same as in MC (2 x 2 inventory crafting and 3 x 3 workbench crafting). Being able to do everything from inventory is very boring. Not sure about 4 x 4 or 5 x 5 recipes, but optionality I imagine those could be added to MT officially as well.

PostPosted: Sat Jun 23, 2012 19:47
by SegFault22
This could work great with Naqueda Circuits for the stargate DHD - making the DHD requires 5 different naqueda-powered circuit boards, and you have to ''build'' them in a 20x20 crafting grid (or bigger :D)
Great mod! This should be added to Minetest as a default ''mod'' that comes with every minetest :D

PostPosted: Sat Jun 23, 2012 19:49
by ACDC
You dont get tired of copying mods do you? first you wanna copy bad command now dark rose lol.....

GameBoom is where its at :)

PostPosted: Sat Jun 23, 2012 19:52
by LolManKuba
ACDC, he didn't copy Bad_Command

PostPosted: Sat Jun 23, 2012 19:59
by ACDC
LolManKuba wrote:ACDC, he didn't copy Bad_Command


hes trying to make a mod that does exactly what bc's does, and he asked him to remove the privs restrictions cause he doesnt know how to do it, since all he has done is copied :) i rest my case

PostPosted: Sat Jun 23, 2012 20:32
by LolManKuba
Segfault didn't know that Bad_Command had a mod, he never posted it when Segfault did.

PostPosted: Sat Jun 23, 2012 20:39
by ACDC
LolManKuba wrote:Segfault didn't know that Bad_Command had a mod, he never posted it when Segfault did.


well he has been on gameboom so he knows about it, and why are you justifying him anyway?

PostPosted: Sat Jun 23, 2012 21:14
by SegFault22
What is ''gameboom''?
oh and P.S. I still can't get the stargate to work when someone walks-into the event horizon, need to work on that a bit...
P.S.S. I am not copying darkrose either, I was stating that this mod should be added to ''default'' in minetest, so other mods can have more recipes.

PostPosted: Sat Jun 23, 2012 22:42
by LolManKuba
Gameboom is a server.

PostPosted: Sun Jun 24, 2012 02:50
by SegFault22
Cool.
Now, I shall go help rebuild Redcrab's Server (the normal-build-stuff-you-want-server)

PostPosted: Fri Aug 03, 2012 02:27
by GloopMaster
Appears to not support shapeless crafts. Fix please. Otherwise, yes, this is undeniably cool.

PostPosted: Fri Aug 03, 2012 03:14
by bob
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

PostPosted: Fri Aug 03, 2012 05:26
by LolManKuba
Does this mod even work anymore?

PostPosted: Fri Aug 03, 2012 06:55
by darkrose
I just updated the zip in the first post, so it works with 0.4.2+ now.

PostPosted: Fri Aug 03, 2012 08:36
by MirceaKitsune
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.