mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-30 13:50:23 +02:00
Use connect_to_raillike for rail
Used value: 2
This commit is contained in:
16
game_api.txt
16
game_api.txt
@ -194,6 +194,22 @@ xpanes.register_pane(subname, def)
|
||||
^ 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.
|
||||
Use `minetest.raillike_group(<Name>)` to get the group value.
|
||||
|
||||
| Node type | Raillike group name
|
||||
+-----------------------+----------------------------------
|
||||
| default:rail | "rail"
|
||||
|
||||
Example:
|
||||
If you want to add a new rail type and want it to connect with default:rail,
|
||||
add `connect_to_raillike=minetest.raillike_group("rail")` into the `groups` table
|
||||
of your node.
|
||||
|
||||
|
||||
Default sounds
|
||||
--------------
|
||||
Sounds inside the default table can be used within the sounds field of node definitions.
|
||||
|
Reference in New Issue
Block a user