How to make infinite burntime?

Post Reply
Badkraft
Member
Posts: 28
Joined: Wed Jan 27, 2021 13:44

How to make infinite burntime?

by Badkraft » Post

Say I want to have a fuel in the furnace have infinite burn time only in creative. How would I do that?

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

Re: How to make infinite burntime?

by cx384 » Post

I don't think this is easily doable.
Just make the burntime really big or add a replacement for the fuel like this:

Code: Select all

minetest.register_craft {
	type = "fuel",
	recipe = "default:dirt",
	burntime = 1,
	replacements = {{"default:dirt", "default:dirt"}},
}
Can your read this?

Badkraft
Member
Posts: 28
Joined: Wed Jan 27, 2021 13:44

Re: How to make infinite burntime?

by Badkraft » Post

I'm not fully understanding how replacements work; especially in this instance. Can you explain the behavior?

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

Re: How to make infinite burntime?

by cx384 » Post

Badkraft wrote:
Tue Feb 16, 2021 09:49
I'm not fully understanding how replacements work; especially in this instance. Can you explain the behavior?
In the previous example dirt is a fuel and when it gets used it is replaced by dirt again so it will never be used up.
(Just try it out if you want to understand it better, but only put a single dirt in the fuel slot of the furnace otherwise the replaced dirt will go into the output slot I think.)

An example in MTG is the lava bucked recipe.

Code: Select all

minetest.register_craft({
	type = "fuel",
	recipe = "bucket:bucket_lava",
	burntime = 60,
	replacements = {{"bucket:bucket_lava", "bucket:bucket_empty"}},
})
In this case you get a empty bucket back.

For more information read the official documentation .
Last edited by cx384 on Wed Feb 17, 2021 10:46, edited 2 times in total.
Can your read this?

Badkraft
Member
Posts: 28
Joined: Wed Jan 27, 2021 13:44

Re: How to make infinite burntime?

by Badkraft » Post

Great. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests