diff options
-rw-r--r-- | advtrains/init.lua | 3 | ||||
-rw-r--r-- | advtrains/misc_nodes.lua | 14 | ||||
-rw-r--r-- | advtrains/trackplacer.lua | 2 | ||||
-rw-r--r-- | readme.txt | 2 |
4 files changed, 12 insertions, 9 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua index 2ef2879..65e5048 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -171,6 +171,9 @@ end --load/save +advtrains.fpath=minetest.get_worldpath().."/advtrains" +dofile(advtrains.modpath.."/log.lua") + function advtrains.avt_load() local file, err = io.open(advtrains.fpath, "r") if not file then diff --git a/advtrains/misc_nodes.lua b/advtrains/misc_nodes.lua index 37f535d..85fb0ef 100644 --- a/advtrains/misc_nodes.lua +++ b/advtrains/misc_nodes.lua @@ -1,6 +1,6 @@ --all nodes that do not fit in any other category -function advtrains.register_platform(preset) +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) @@ -12,7 +12,7 @@ function advtrains.register_platform(preset) end local desc=ndef.description or "" local nodename=string.match(preset, ":(.+)$") - minetest.register_node("advtrains:platform_low_"..nodename, { + minetest.register_node(modprefix .. ":platform_low_"..nodename, { description = attrans("@1 Platform (low)", desc), tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex}, groups = {cracky = 1, not_blocking_trains = 1, platform=1}, @@ -29,7 +29,7 @@ function advtrains.register_platform(preset) paramtype = "light", sunlight_propagates = true, }) - minetest.register_node("advtrains:platform_high_"..nodename, { + minetest.register_node(modprefix .. ":platform_high_"..nodename, { description = attrans("@1 Platform (high)", desc), tiles = {btex.."^advtrains_platform.png", btex, btex, btex, btex, btex}, groups = {cracky = 1, not_blocking_trains = 1, platform=2}, @@ -48,14 +48,14 @@ function advtrains.register_platform(preset) }) minetest.register_craft({ type="shapeless", - output = "advtrains:platform_high_"..nodename.." 4", + output = modprefix .. ":platform_high_"..nodename.." 4", recipe = { "dye:yellow", preset, preset }, }) minetest.register_craft({ type="shapeless", - output = "advtrains:platform_low_"..nodename.." 4", + output = modprefix .. ":platform_low_"..nodename.." 4", recipe = { "dye:yellow", preset }, @@ -63,5 +63,5 @@ function advtrains.register_platform(preset) end -advtrains.register_platform("default:stonebrick") -advtrains.register_platform("default:sandstonebrick") +advtrains.register_platform("advtrains", "default:stonebrick") +advtrains.register_platform("advtrains", "default:sandstonebrick") diff --git a/advtrains/trackplacer.lua b/advtrains/trackplacer.lua index c61bbb4..2628daa 100644 --- a/advtrains/trackplacer.lua +++ b/advtrains/trackplacer.lua @@ -268,7 +268,7 @@ function tp.register_track_placer(nnprefix, imgprefix, dispname) description = dispname, inventory_image = imgprefix.."_placer.png", wield_image = imgprefix.."_placer.png", - groups={advtrains_trackplacer=1}, + groups={advtrains_trackplacer=1, digtron_on_place=1}, on_place = function(itemstack, placer, pointed_thing) return advtrains.pcall(function() local name = placer:get_player_name() @@ -44,7 +44,7 @@ advtrains_crossing_bell : Codesound advtrains_japan_horn : Codesound
advtrains_steam_whistle : googol
advtrains_subway_horn : https://freesound.org/people/Mullumbimby/sounds/385283/
-advtrains_subway_* : Gabriel (gpcf, gbl08ma)
+advtrains_subway_* : Gabriel (gbl08ma)
If I forgot someone please punish me for that.
|