aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_subway/textures
Commit message (Expand)AuthorAge
* subway trains: display up to two digitsHume22020-07-25
* Add "X" line symbol for subway trains terminating/service tripsorwell962019-02-05
* Make "Line" property accessible from OBC and gettable via LATC, change subway...orwell962018-11-20
* Set wagon line numberGabriel PĂ©rez-Cerezo2017-10-23
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
* Restructure mod directoryorwell962017-01-04
* Turning mod into a modpack and separating the trains from the core modorwell962016-12-20
'#n88'>88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
--all nodes that do not fit in any other category

function advtrains.register_platform(modprefix, preset)
	local ndef=minetest.registered_nodes[preset]
	if not ndef then 
		minetest.log("warning", " register_platform couldn't find preset node "..preset)
		return
	end
	local btex=ndef.tiles
	if type(btex)=="table" then
		btex=btex[1]
	end
	local desc=ndef.description or ""
	local nodename=string.match(preset, ":(.+)$")
	minetest.register_node(modprefix .. ":platform_low_"..nodename, {
		description = attrans("@1 Platform (low)", desc),