<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://olddev.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Minetest.raillike_group</id>
	<title>Minetest.raillike group - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://olddev.minetest.org/index.php?action=history&amp;feed=atom&amp;title=Minetest.raillike_group"/>
	<link rel="alternate" type="text/html" href="https://olddev.minetest.org/index.php?title=Minetest.raillike_group&amp;action=history"/>
	<updated>2026-04-15T09:46:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.7</generator>
	<entry>
		<id>https://olddev.minetest.org/index.php?title=Minetest.raillike_group&amp;diff=237&amp;oldid=prev</id>
		<title>&gt;ROllerozxa at 13:57, 25 October 2022</title>
		<link rel="alternate" type="text/html" href="https://olddev.minetest.org/index.php?title=Minetest.raillike_group&amp;diff=237&amp;oldid=prev"/>
		<updated>2022-10-25T13:57:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{UnofficialLua}}&lt;br /&gt;
{{DISPLAYTITLE:minetest.raillike_group}}&lt;br /&gt;
Creates or retrieves a rating value based on a name, for use with the &amp;lt;code&amp;gt;connect_to_raillike&amp;lt;/code&amp;gt; group in minetest.register_node.&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
When defining a node, the &amp;lt;code&amp;gt;connect_to_raillike&amp;lt;/code&amp;gt; group requires a numeric rating value, so that nodes with the same rating can connect together (like rails do when placing them next to each other). This function registers (if it does not exist) or retrieves (if it already exists) a rating value based on a name, and returns it. That name can be shared by multiple mods, so that all mods that use the same name will be assigned the same rating value.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This code will create a node &amp;quot;my_mod:my_gunpowder&amp;quot; that will be able to connect to any nodes that used the name &amp;quot;gunpowder&amp;quot; to invoke this function, like the TNT mod in the Minetest game, but won't be able to connect to any nodes that used a different name, even if adjacent:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
minetest.register_node(&amp;quot;my_mod:my_gunpowder&amp;quot;, {&lt;br /&gt;
    ...&lt;br /&gt;
    drawtype = &amp;quot;raillike&amp;quot;,&lt;br /&gt;
    ...&lt;br /&gt;
    groups = { connect_to_raillike = minetest.raillike_group(&amp;quot;gunpowder&amp;quot;),&lt;br /&gt;
               ... }&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Methods|r]]&lt;/div&gt;</summary>
		<author><name>&gt;ROllerozxa</name></author>
	</entry>
</feed>