Page 1 of 1

Furnace-like Formspec that repairs tools

PostPosted: Wed Jul 04, 2018 16:33
by Joseph16
I have a great idea for a dishwasher, you put your damaged tool into the Formspec box and it repairs the tools HP over time. Problem is, I am CLUELESS on how to even make a Formspec come up when you click the block let alone do what it should do. If anyone is willing to help me out with sections of code and help me debug I would be very grateful.
Segments that I need help with:
    Making formspec pop up
Making tool repair box
Tool repairs over time, not instantly.
Does not require fuel
Repairs any tool, not just default items.

I will do as much as I can but I need help with the base coding.

Re: Furnace-like Formspec that repairs tools

PostPosted: Wed Jul 04, 2018 16:57
by hajo
Joseph13 wrote:put your damaged tool into the Formspec box and it repairs the tools HP over time

That's how the workbench from xdecor works (while gradually consuming a hammer).

Also, basic-robots can repair tools.

Re: Furnace-like Formspec that repairs tools

PostPosted: Wed Jul 04, 2018 18:35
by Joseph16
Thank you! I’ll look into the coding of those mods.

Re: Furnace-like Formspec that repairs tools

PostPosted: Wed Jul 04, 2018 21:34
by Joseph16
So after looking at both mods I have decided that the workbench mod would work best for my needs, but I need to remove the hammer function alltogether. I want the tool for repairing to repair over say 30 seconds, but not consume any tools or items.

Re: Furnace-like Formspec that repairs tools

PostPosted: Sat Jul 07, 2018 00:57
by GamingAssociation39
You could always have it swap the damaged items to brand new items over time.

Re: Furnace-like Formspec that repairs tools

PostPosted: Sat Jul 07, 2018 01:05
by Joseph16
GamingAssociation39 wrote:You could always have it swap the damaged items to brand new items over time.

Not a bad idea!

Re: Furnace-like Formspec that repairs tools

PostPosted: Sat Jul 07, 2018 01:06
by GamingAssociation39
I've used that in my furniture mod to get a microwave and an oven to work.

Re: Furnace-like Formspec that repairs tools

PostPosted: Sat Jul 07, 2018 01:19
by Sokomine
The toolworkshop from the technic mod does this by consuming energy. My cottages mod comes with an anvil that repairs tools a little bit each time you hit the anvil with a hammer. The workbench from xdecor has already been mentionned. There are several ways for doing things over time. Perhaps minetest.after might be suitable in this case?

Re: Furnace-like Formspec that repairs tools

PostPosted: Sun Jul 15, 2018 13:47
by cx384
Don't forget the tool repair from BitChange.