Page 1 of 1
[Mod] Workbench - 3x3 4x4 5x5 [20121003][workbench]

Posted:
Wed Oct 03, 2012 03:48
by cornernote
Workbench for MinetestCopyright (C) 2012 darkrose, Lisa Milne <lisa@ltmnet.com>
Copyright (C) 2012 cornernote, Brett O'Donnell <cornernote@gmail.com>
License: GPLv3
Latest Zipball (no download link availible, please share one if you have it)
DescriptionAdds workbenches (crafting tables) with 3x3, 4x4, and 5x5 crafting grids, so bring on the complicated recipes!
NotesAdd the following line to minetest.conf to get a 2x2 craft grid in your inventory:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Modders GuideJust make your crafts exactly how you used to, only BIGGER!
EG:
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 = "default:mese",
recipe = {
{"default:steelblock","default:steelblock","default:steelblock","default:steelblock","default:steelblock"},
{"default:steelblock","default:steelblock","default:steelblock","default:steelblock","default:steelblock"},
{"default:steelblock","default:steelblock","default:steelblock","default:steelblock","default:steelblock"},
{"default:steelblock","default:steelblock","default:steelblock","default:steelblock","default:steelblock"},
{"default:steelblock","default:steelblock","default:steelblock","default:steelblock","default:steelblock"},
}
})
Creditsdarkrose - code originally came from her
workbench mod

Posted:
Wed Oct 03, 2012 05:36
by cornernote
fixed a lot of small glitches:
- you cannot take 1/2 stacks from the craft result (i cant make it select multiple, sorry theres no event hook in lua for selecting the item)
- when moving from craft result to table now deducts the amount from the table

Posted:
Wed Oct 03, 2012 07:36
by cornernote
now works with
inventory_plus - you can put crafting tables into a slot in your inventory to give yourself a bigger inventory crafting grid.

Posted:
Fri Oct 05, 2012 08:09
by creeper96
wowsers man this IS SO EPIC i spent hours just using this 1 mod thanks cornernote

Posted:
Fri Oct 05, 2012 15:23
by Mito551
i placed a 3x3 bench and got 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
19:11:41: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...5-win32\bin\..\games\dwarves\mods\workbench\init.lua:48: attempt to call field 'get_node' (a nil value)
19:11:41: ERROR[main]: stack traceback:
19:11:41: ERROR[main]: [C]: in function 'add_node'
19:11:41: ERROR[main]: ...minetest-0.4.3-25cf375-win32\bin\..\builtin/item.lua:185: in function <...minetest-0.4.3-25cf375-win32\bin\..\builtin/item.lua:124>

Posted:
Fri Oct 05, 2012 17:11
by cornernote
Mito551 wrote:i placed a 3x3 bench and got 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
19:11:41: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: ...5-win32\bin\..\games\dwarves\mods\workbench\init.lua:48: attempt to call field 'get_node' (a nil value)
19:11:41: ERROR[main]: stack traceback:
19:11:41: ERROR[main]: [C]: in function 'add_node'
19:11:41: ERROR[main]: ...minetest-0.4.3-25cf375-win32\bin\..\builtin/item.lua:185: in function <...minetest-0.4.3-25cf375-win32\bin\..\builtin/item.lua:124>
fixed

Posted:
Fri Oct 05, 2012 17:13
by Mito551
thank you! :)

Posted:
Fri Oct 05, 2012 19:17
by Mito551
but it seems i ran into another issue. when i place a bench, i get a 0x0 bench and can't craft anything in it. but i can use it to extend my 'built-in crafting grid'

Posted:
Sat Oct 06, 2012 02:48
by cornernote
interesting...
can you replicate it again? if so, can you give me steps to replicate it?

Posted:
Sat Oct 06, 2012 04:56
by Mito551
uhm. i installed the mod, set the small inventory. entered the world, crafted a bench. placed a bench, got server crashed because of the issue i already reported, you already fixed. installed the new version. entered the world, finally placed a workbench. it became 0x0 and empty internal inventory/formspec. decided that the old workbench somewhy doesn't work, so crafted a new one. same result. 0x0 and empty internal inventory/formspec.

Posted:
Sun Oct 07, 2012 00:52
by Comp52
I got the same problem; installed the mod, made a table, got a 0x0 workbench that is just about useless.

Posted:
Sun Oct 07, 2012 01:07
by cornernote
Mito551, bug is fixed now, thanks for reporting this in a friendly and constructive way.
Comp52, i'm sorry that the work i did to for free to bring you this mod did not give you a perfect result first time. if you find mods that are in development (such as most found on these forums) to be useless perhaps you should consider a game where you pay developers for their time.

Posted:
Sun Oct 07, 2012 07:17
by Mito551
well... i'm trying my best! thank you for your work!
oh, is there a way to disable extension of internal crafting grid? i mean, turn off the ability to put the workbench in certain place in inventory and get a 3x3 instead of 2x2. i want to see 2x2 as a constant.

Posted:
Mon Oct 08, 2012 18:10
by Comp52
@cornernote, I'm sorry if I came off a bit harsh, I didn't mean what I said quite like you appear to have taken it. All I was trying to say is that the crafting table wasn't working, and that I was having the same error as Mito551. I'm sorry if you felt that I was trying to be degrading.

Posted:
Tue Oct 09, 2012 00:25
by cornernote
Comp52, no worries. Thanks for coming back to explain. I was probably a bit harsh too. One of those days I guess :)

Posted:
Tue Oct 09, 2012 12:53
by Boomboomcreeper
thank you very much cornernote for this mod now this is in my minecraft like project but it is unfinished

Posted:
Thu Oct 11, 2012 22:17
by Comp52
is it working? just curious. I might have some ideas for crafting.

Posted:
Fri Nov 09, 2012 21:38
by MirceaKitsune
I had a question about this mod. Apart from the different sizes of workbenches, is it possible to make some benches allow only some crafting recipes? So in case I'd modify the script to have two workbenches, both of 3 x 3 size; Could I make some recipes only possible on one and others on the other?

Posted:
Sun Feb 17, 2013 19:33
by Matsetes
I noticed some kind of bugs with the workbench.
I'm not very good with english so I made a video to show what kind of bugs I found,
http://www.youtube.com/watch?v=XXDNb2JzvwI

Posted:
Sun Feb 17, 2013 22:46
by pandaro
MirceaKitsune wrote:I had a question about this mod. Apart from the different sizes of workbenches, is it possible to make some benches allow only some crafting recipes? So in case I'd modify the script to have two workbenches, both of 3 x 3 size; Could I make some recipes only possible on one and others on the other?
I think it is possible, I'm going to try it sooner or later.
I think that the development of this mod is a little ... arrested

Posted:
Mon Feb 18, 2013 10:13
by Matsetes
pandaro wrote:I think that the development of this mod is a little ... arrested
But there is nobody who can fix that?

Posted:
Tue Feb 19, 2013 11:43
by deivan
I have two bugs in my to do list now... Maybe I repair this mod (if the owner don't correct it):
1) Fix the exploit. (About the infinity production of items)
2) Fix the bug who make lost half items from the workbench if you have him with you and close the game. (I lost many mese in this "incident"...)
My plan is clone the bag script (get_stack and set_stack) in this script (solving the question 2) and will seek to a solution to the exploit (maybe is a small wrong line). Is it.
When I have more free time I start this.

Posted:
Tue Feb 19, 2013 12:13
by jojoa1997
please look at the creators aaccount
cornernote
Banned
Offline
Registered: 2012-07-11
Posts: 807

Posted:
Tue Feb 19, 2013 12:21
by deivan
Well... Maybe him correct the mod in the git, or in another place. I seek when I have more time. Cya.

Posted:
Thu Mar 28, 2013 16:41
by sfan5-bot
[EE] No Dependencies found
Please fix these Mistakes and report this post, a moderator will delete it
If you believe I have made a Mistake contact
sfan5

Posted:
Thu Mar 28, 2013 17:55
by deivan
I have this mod close to full operational here, and have many added features but I don't have recipes with more than 3x3 (out side the workbench mod). Ideas for more recipes?

Posted:
Fri Mar 29, 2013 00:42
by tinoesroho
... I think that large items (boats, doors, etc) should be require a 4x4 crafting table at the minimum. But since you can't multi-click, the workbench is mainly a large hassle...

Posted:
Tue Apr 08, 2014 11:25
by JPRuehmann
Hello
I´d like to try it out, but I get this error.
13:23:21: ERROR[main]: ServerError: /home/ruehmann/.minetest/mods/workbench/init.lua:284: attempt to index field 'buttons' (a nil value)
13:23:21: ERROR[main]: stack traceback:
13:23:21: ERROR[main]: /home/ruehmann/.minetest/mods/workbench/init.lua:284: in function '?'
13:23:21: ERROR[main]: /usr/share/minetest/builtin/misc_register.lua:348: in function </usr/share/minetest/builtin/misc_register.lua:336>
I´d love to see it work at least in modmenu /m
thanks,
JPR

Posted:
Thu Apr 10, 2014 14:48
by deivan
My versions is operational... Here:
https://forum.minetest.net/viewtopic.php?id=5617The Advanced Workbench, is little heavy but is working. :D

Posted:
Thu Apr 10, 2014 20:19
by JPRuehmann
@deivan
Works perfect.
Thanks,
JPR