Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make variants of nodes that can burn also burnable #177

Open
Tracked by #191
Caellian opened this issue Feb 12, 2021 · 0 comments
Open
Tracked by #191

Make variants of nodes that can burn also burnable #177

Caellian opened this issue Feb 12, 2021 · 0 comments
Labels

Comments

@Caellian
Copy link
Contributor

Caellian commented Feb 12, 2021

Stairs mod handles it with the following:

local baseburntime = minetest.get_craft_result({
	method = "fuel",
	width = 1,
	items = {basenode}
}).time
if baseburntime > 0 then
	-- TODO: Properly handle burn times
	minetest.register_craft({
		type = "fuel",
		recipe = "stairs:slab_" .. subname,
		burntime = math.floor(baseburntime * 0.5),
	})
end

this should be pretty straightforward to handle in recipes.lua.

Moreblocks handles information about ratios much better than stairs so it'll be easier to handle all cases properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants