<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AGames%2FMinetest_Game%2FSmelting</id>
	<title>Talk:Games/Minetest Game/Smelting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Talk%3AGames%2FMinetest_Game%2FSmelting"/>
	<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;action=history"/>
	<updated>2026-05-07T16:48:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.4</generator>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=12983&amp;oldid=prev</id>
		<title>&gt;Wuzzy: Wuzzy moved page Talk:Smelting to Talk:Games/Minetest Game/Smelting: This is very MTG-specific</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=12983&amp;oldid=prev"/>
		<updated>2020-06-26T19:17:31Z</updated>

		<summary type="html">&lt;p&gt;Wuzzy moved page &lt;a href=&quot;/Talk:Smelting&quot; class=&quot;mw-redirect&quot; title=&quot;Talk:Smelting&quot;&gt;Talk:Smelting&lt;/a&gt; to &lt;a href=&quot;/Talk:Games/Minetest_Game/Smelting&quot; title=&quot;Talk:Games/Minetest Game/Smelting&quot;&gt;Talk:Games/Minetest Game/Smelting&lt;/a&gt;: This is very MTG-specific&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:17, 26 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;Wuzzy</name></author>
	</entry>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=9218&amp;oldid=prev</id>
		<title>&gt;Wuzzy: Wuzzy moved page Talk:Smelting to Talk:Games/Minetest Game/Smelting: This is very MTG-specific</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=9218&amp;oldid=prev"/>
		<updated>2020-06-26T19:17:31Z</updated>

		<summary type="html">&lt;p&gt;Wuzzy moved page &lt;a href=&quot;/Talk:Smelting&quot; class=&quot;mw-redirect&quot; title=&quot;Talk:Smelting&quot;&gt;Talk:Smelting&lt;/a&gt; to &lt;a href=&quot;/Talk:Games/Minetest_Game/Smelting&quot; title=&quot;Talk:Games/Minetest Game/Smelting&quot;&gt;Talk:Games/Minetest Game/Smelting&lt;/a&gt;: This is very MTG-specific&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:17, 26 June 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>&gt;Wuzzy</name></author>
	</entry>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=5453&amp;oldid=prev</id>
		<title>&gt;Wuzzy: Wuzzy moved page Talk:Smelting to Talk:Games/Minetest Game/Smelting: This is very MTG-specific</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=5453&amp;oldid=prev"/>
		<updated>2020-06-26T19:17:31Z</updated>

		<summary type="html">&lt;p&gt;Wuzzy moved page &lt;a href=&quot;/Talk:Smelting&quot; class=&quot;mw-redirect&quot; title=&quot;Talk:Smelting&quot;&gt;Talk:Smelting&lt;/a&gt; to &lt;a href=&quot;/Talk:Games/Minetest_Game/Smelting&quot; title=&quot;Talk:Games/Minetest Game/Smelting&quot;&gt;Talk:Games/Minetest Game/Smelting&lt;/a&gt;: This is very MTG-specific&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:17, 26 June 2020&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key mediawiki-mw_:diff::1.12:old-1688:rev-5453 --&gt;
&lt;/table&gt;</summary>
		<author><name>&gt;Wuzzy</name></author>
	</entry>
	<entry>
		<id>https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=1688&amp;oldid=prev</id>
		<title>&gt;Wuzzy: Wuzzy moved page Talk:Smelting to Talk:Games/Minetest Game/Smelting: This is very MTG-specific</title>
		<link rel="alternate" type="text/html" href="https://wiki.minetest.org/index.php?title=Talk:Games/Minetest_Game/Smelting&amp;diff=1688&amp;oldid=prev"/>
		<updated>2020-06-26T19:17:31Z</updated>

		<summary type="html">&lt;p&gt;Wuzzy moved page &lt;a href=&quot;/Talk:Smelting&quot; class=&quot;mw-redirect&quot; title=&quot;Talk:Smelting&quot;&gt;Talk:Smelting&lt;/a&gt; to &lt;a href=&quot;/Talk:Games/Minetest_Game/Smelting&quot; title=&quot;Talk:Games/Minetest Game/Smelting&quot;&gt;Talk:Games/Minetest Game/Smelting&lt;/a&gt;: This is very MTG-specific&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Semi-automatic generation of fuel table =&lt;br /&gt;
&lt;br /&gt;
Since updating the fuel table is a tedious and error-prone task, I have written a Lua script to semi-automatically generate the table.&lt;br /&gt;
Put the following code into a mod called “wikifuel”, enable it in [[Subgames/Minetest Game|Minetest Game]] with no other mods enabled and use the &amp;lt;code&amp;gt;/wikifuel&amp;lt;/code&amp;gt; command. The mod will then output a wiki table into &amp;lt;code&amp;gt;fuel_recipes.txt&amp;lt;/code&amp;gt; in the world directory. This wiki table can be pasted into the the article.&lt;br /&gt;
&lt;br /&gt;
The wiki table you get will still need manual updates:&lt;br /&gt;
&lt;br /&gt;
* Links need to be corrected&lt;br /&gt;
* Images need to be corrected&lt;br /&gt;
* Replacements must be added by hand (e.g. [[Bucket|Lava Bucket]] turning into Empty Bucket)&lt;br /&gt;
* Groups must be added by hand&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- TODO: Add support for replacements&lt;br /&gt;
-- TODO: Add support for groups&lt;br /&gt;
-- TODO: Make item count sortable&lt;br /&gt;
&lt;br /&gt;
local function do_out(playername, param)&lt;br /&gt;
&lt;br /&gt;
	local outstring = &amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	outstring = &lt;br /&gt;
[=[&lt;br /&gt;
{| class=&amp;quot;wikitable collapsible sortable&amp;quot;&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;unsortable&amp;quot; |&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | Block&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | Burning time in seconds&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;unsortable&amp;quot; | Items smelted per fuel&amp;lt;ref&amp;gt;Assuming a smelting time of 3 seconds&amp;lt;/ref&amp;gt;&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; class=&amp;quot;unsortable&amp;quot; |&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; | Remainder&lt;br /&gt;
|-&lt;br /&gt;
]=]&lt;br /&gt;
&lt;br /&gt;
	local fuelitems = {}&lt;br /&gt;
	for k,v in pairs(minetest.registered_items) do&lt;br /&gt;
		local f = minetest.get_craft_result({method=&amp;quot;fuel&amp;quot;, items = {k}})&lt;br /&gt;
		if f~=nil and f.time &amp;gt; 0 then table.insert(fuelitems, {burntime=f.time, item=k}) end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	table.sort(fuelitems, function(a,b)&lt;br /&gt;
		return a.burntime &amp;gt; b.burntime&lt;br /&gt;
	end)&lt;br /&gt;
&lt;br /&gt;
	for i=1,#fuelitems do&lt;br /&gt;
&lt;br /&gt;
		local itemname = minetest.registered_items[fuelitems[i].item].description&lt;br /&gt;
		if itemname == nil then itemname = &amp;quot;UNKNOWN ITEM&amp;quot; end&lt;br /&gt;
		local burntime = fuelitems[i].burntime&lt;br /&gt;
		local iwhole = math.floor(burntime/3)&lt;br /&gt;
		local iremainder = math.fmod(burntime, 3)&lt;br /&gt;
		local itemcount = &amp;quot;&amp;quot;&lt;br /&gt;
		if iremainder == 0 then&lt;br /&gt;
			itemcount = tostring(iwhole)&lt;br /&gt;
		else&lt;br /&gt;
			if iwhole &amp;gt;= 1 then&lt;br /&gt;
				itemcount = tostring(iwhole)&lt;br /&gt;
				itemcount = itemcount .. '&amp;amp;#x200B;'&lt;br /&gt;
			end&lt;br /&gt;
			if iremainder == 2 then&lt;br /&gt;
				itemcount = itemcount .. &amp;quot;⅔&amp;quot;&lt;br /&gt;
			elseif iremainder == 1 then&lt;br /&gt;
				itemcount = itemcount .. &amp;quot;⅓&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		outstring = outstring ..&lt;br /&gt;
		string.format(&lt;br /&gt;
[=[&lt;br /&gt;
| [[File:%s.png|link=%s|32px]]&lt;br /&gt;
| [[%s]]&lt;br /&gt;
| %d&lt;br /&gt;
| %s&lt;br /&gt;
|&lt;br /&gt;
| ''Nothing''&lt;br /&gt;
|-&lt;br /&gt;
]=], itemname, itemname, itemname, burntime, itemcount)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
	outstring = outstring .. &amp;quot;|}\n&amp;lt;references/&amp;gt;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	local filename = minetest.get_worldpath()..&amp;quot;/fuel_recipes.txt&amp;quot;&lt;br /&gt;
	local file = io.open(filename, &amp;quot;w&amp;quot;)&lt;br /&gt;
	file:write(outstring)&lt;br /&gt;
	file:close()&lt;br /&gt;
	minetest.chat_send_player(playername, &amp;quot;Fuel items written to: &amp;quot;..filename)&lt;br /&gt;
	minetest.log(&amp;quot;action&amp;quot;, &amp;quot;[wikifuel] Fuel items were written into file: &amp;quot;..filename)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
minetest.register_chatcommand(&amp;quot;wikifuel&amp;quot;, {&lt;br /&gt;
	description = &amp;quot;Writes a list of all available fuels in MediaWiki syntax&amp;quot;,&lt;br /&gt;
	params = &amp;quot;&amp;quot;,&lt;br /&gt;
	privs = {server=true},&lt;br /&gt;
	func = do_out,&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>&gt;Wuzzy</name></author>
	</entry>
</feed>