mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-31 02:56:26 -04:00
Add connect_to_raillike info into game_api.txt
This commit is contained in:
parent
8779bb85ef
commit
feacdc4bff
1 changed files with 19 additions and 0 deletions
19
game_api.txt
19
game_api.txt
|
@ -157,6 +157,25 @@ xpanes.register_pane(subname, def)
|
||||||
^ Recipe field only
|
^ Recipe field only
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Raillike definitions
|
||||||
|
--------------------
|
||||||
|
The following nodes use the group `connect_to_raillike` and will only connect to
|
||||||
|
raillike nodes within this group and the same group value:
|
||||||
|
|
||||||
|
| Node type | Group value
|
||||||
|
+-----------------------+------------
|
||||||
|
| default:rail | 2
|
||||||
|
|
||||||
|
This is an overview of currently used groups:
|
||||||
|
| Group value | Description
|
||||||
|
+---------------+------------
|
||||||
|
| 2 | Rails
|
||||||
|
|
||||||
|
Example:
|
||||||
|
If you want to add a new rail type and want it to connect with default:rail,
|
||||||
|
add `connect_to_raillike=2` into the `groups` table of your node.
|
||||||
|
|
||||||
|
|
||||||
Default sounds
|
Default sounds
|
||||||
--------------
|
--------------
|
||||||
Sounds inside the default table can be used within the sounds field of node definitions.
|
Sounds inside the default table can be used within the sounds field of node definitions.
|
||||||
|
|
Loading…
Add table
Reference in a new issue