New furnaces

Chem871
Member
 
Posts: 937
Joined: Sat Aug 19, 2017 21:49
Location: SCP-2935
GitHub: Chemguy99
In-game: Dwaba_Kukai

New furnaces

by Chem871 » Thu Nov 02, 2017 19:15

You know the default furnaces, right? It would be cool if 1:When a lava bucket(or bottle of ethanol) was placed in the fuel slot, it would place the empty container in the output slot, or 2:There were 2 input slots.
What is SCP-055 again? I forgot.
 

User avatar
v-rob
Member
 
Posts: 691
Joined: Thu Mar 24, 2016 03:19
Location: Right behind you.
GitHub: v-rob

Re: New furnaces

by v-rob » Fri Nov 03, 2017 00:42

Simple, but little-known solution:

Code: Select all
minetest.register_craft({
   type = "fuel",
   recipe = "bucket:bucket_lava",
   burntime = 60,
   replacements = {
      {'bucket:bucket_lava', 'bucket:bucket_empty'}
   }
})


For replacements, the first item is the one being replaced, and the second one is the one replacing it.

This places the empty bucket in the fuel slot, not the output slot, so this won't work with hoppers/pipeworks/factory.
 

User avatar
Stix
Member
 
Posts: 1379
Joined: Fri Aug 04, 2017 14:19
Location: USA
IRC: nil
In-game: Stix [+alts]

Re: New furnaces

by Stix » Sat Nov 04, 2017 18:33

v-rob wrote:Simple, but little-known solution:

Code: Select all
minetest.register_craft({
   type = "fuel",
   recipe = "bucket:bucket_lava",
   burntime = 60,
   replacements = {
      {'bucket:bucket_lava', 'bucket:bucket_empty'}
   }
})


For replacements, the first item is the one being replaced, and the second one is the one replacing it.

This places the empty bucket in the fuel slot, not the output slot, so this won't work with hoppers/pipeworks/factory.

i first learned that kind of code from examining rubenwardys work.
Hey, what can i say? I'm the bad guy.
Next release of your favorite game? "Bugfixes" --Wuzzy
[OLD]The new Minetest-offtopic can be found here: https://minetestoftopic.createaforum.com/index.php
 

User avatar
Andrey01
Member
 
Posts: 2329
Joined: Wed Oct 19, 2016 15:18
Location: Russia, Moscow
GitHub: Andrey2470T
In-game: Andrey01

Re: New furnaces

by Andrey01 » Sat Nov 04, 2017 19:06

Stix wrote:
v-rob wrote:Simple, but little-known solution:

Code: Select all
minetest.register_craft({
   type = "fuel",
   recipe = "bucket:bucket_lava",
   burntime = 60,
   replacements = {
      {'bucket:bucket_lava', 'bucket:bucket_empty'}
   }
})


For replacements, the first item is the one being replaced, and the second one is the one replacing it.

This places the empty bucket in the fuel slot, not the output slot, so this won't work with hoppers/pipeworks/factory.

i first learned that kind of code from examining rubenwardys work.

But can you parse this code? And do you know what is "minetest.register_craft"?
 

roboto
Member
 
Posts: 62
Joined: Wed Jul 19, 2017 15:21
GitHub: NewbProgrammer101
In-game: akoek

Re: New furnaces

by roboto » Wed Dec 06, 2017 01:11

Andrey01 wrote:And do you know what is "minetest.register_craft"?


To support this question, Minetest has an official, outdated but still useful developer wiki using minetest.* methods.

http://dev.minetest.net/Category:Methods
 

User avatar
firefox
Member
 
Posts: 1507
Joined: Wed Jan 14, 2015 07:34
Location: Xanadu
In-game: Red_Fox

Re: New furnaces

by firefox » Wed Dec 06, 2017 10:15

Andrey01 wrote:And do you know what is "minetest.register_craft"?

a method to register new craft recipes =(^.^)=

this one crafts a lava bucket into another "lava bucket" which can be used as fuel.
the original (now empty) bucket will remain in the crafting grid.
this way the proxy lava bucket can be used for automated furnaces since it won't leave empty buckets in the fuel slot.
it's like extracting the lava from the bucket and pouring it into the furnace ;)
building inspiration: viewtopic.php?f=3&t=15550 --- my game: viewtopic.php?f=49&t=15860 --- =(^.^)= nyan~
 


Return to Feature Discussion



Who is online

Users browsing this forum: No registered users and 2 guests

cron