Furnace-like Formspec that repairs tools

Post Reply
User avatar
Joseph16
Member
Posts: 308
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph16

Furnace-like Formspec that repairs tools

by Joseph16 » Post

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.
Testin' mines since 1989

hajo
Member
Posts: 605
Joined: Thu Oct 13, 2016 10:45
Location: DE
Contact:

Re: Furnace-like Formspec that repairs tools

by hajo » Post

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.

User avatar
Joseph16
Member
Posts: 308
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph16

Re: Furnace-like Formspec that repairs tools

by Joseph16 » Post

Thank you! I’ll look into the coding of those mods.
Testin' mines since 1989

User avatar
Joseph16
Member
Posts: 308
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph16

Re: Furnace-like Formspec that repairs tools

by Joseph16 » Post

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.
Testin' mines since 1989

User avatar
GamingAssociation39
Member
Posts: 844
Joined: Mon Apr 25, 2016 16:09
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55
Location: Maryland, USA

Re: Furnace-like Formspec that repairs tools

by GamingAssociation39 » Post

You could always have it swap the damaged items to brand new items over time.
Jesus Is Lord and Savior!!!

User avatar
Joseph16
Member
Posts: 308
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph16

Re: Furnace-like Formspec that repairs tools

by Joseph16 » Post

GamingAssociation39 wrote:You could always have it swap the damaged items to brand new items over time.
Not a bad idea!
Testin' mines since 1989

User avatar
GamingAssociation39
Member
Posts: 844
Joined: Mon Apr 25, 2016 16:09
GitHub: Gerold55
IRC: Gerold55
In-game: Gerold55
Location: Maryland, USA

Re: Furnace-like Formspec that repairs tools

by GamingAssociation39 » Post

I've used that in my furniture mod to get a microwave and an oven to work.
Jesus Is Lord and Savior!!!

Sokomine
Member
Posts: 4138
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: Furnace-like Formspec that repairs tools

by Sokomine » Post

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?
A list of my mods can be found here.

User avatar
cx384
Member
Posts: 501
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: Furnace-like Formspec that repairs tools

by cx384 » Post

Don't forget the tool repair from BitChange.
Can your read this?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest