Furnace-like Formspec that repairs tools

Joseph13
Member
 
Posts: 191
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph

Furnace-like Formspec that repairs tools

by Joseph13 » Wed Jul 04, 2018 16:33

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.
I love Hobby Drones! They are awesome! Also I love FPV rc cars!!!
 

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

Re: Furnace-like Formspec that repairs tools

by hajo » Wed Jul 04, 2018 16:57

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.
 

Joseph13
Member
 
Posts: 191
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph

Re: Furnace-like Formspec that repairs tools

by Joseph13 » Wed Jul 04, 2018 18:35

Thank you! I’ll look into the coding of those mods.
I love Hobby Drones! They are awesome! Also I love FPV rc cars!!!
 

Joseph13
Member
 
Posts: 191
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph

Re: Furnace-like Formspec that repairs tools

by Joseph13 » Wed Jul 04, 2018 21:34

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.
I love Hobby Drones! They are awesome! Also I love FPV rc cars!!!
 

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

Re: Furnace-like Formspec that repairs tools

by GamingAssociation39 » Sat Jul 07, 2018 00:57

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

Joseph13
Member
 
Posts: 191
Joined: Tue Dec 06, 2016 05:35
In-game: Joseph

Re: Furnace-like Formspec that repairs tools

by Joseph13 » Sat Jul 07, 2018 01:05

GamingAssociation39 wrote:You could always have it swap the damaged items to brand new items over time.

Not a bad idea!
I love Hobby Drones! They are awesome! Also I love FPV rc cars!!!
 

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

Re: Furnace-like Formspec that repairs tools

by GamingAssociation39 » Sat Jul 07, 2018 01:06

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: 3616
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine

Re: Furnace-like Formspec that repairs tools

by Sokomine » Sat Jul 07, 2018 01:19

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: 492
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: Furnace-like Formspec that repairs tools

by cx384 » Sun Jul 15, 2018 13:47

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


Return to Modding Discussion



Who is online

Users browsing this forum: Libanelo and 2 guests