Added subway signs master
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Sun, 12 Feb 2017 08:38:47 +0000 (09:38 +0100)
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>
Sun, 12 Feb 2017 08:38:47 +0000 (09:38 +0100)
advtrains/advtrains/wagons.lua
advtrains/advtrains_subwayblocks/init.lua [new file with mode: 0644]
advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_london.png [new file with mode: 0644]
advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_madrid.png [new file with mode: 0644]
advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_paris.png [new file with mode: 0644]
advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u-bahn-sign.png [new file with mode: 0644]
advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u_top.png [new file with mode: 0644]

index 0109b19..8282165 100644 (file)
@@ -760,6 +760,10 @@ function advtrains.register_wagon(sysname, prototype, desc, inv_img)
                                atprint("no track here, not placing.")\r
                                return itemstack\r
                        end\r
+                       if minetest.is_protected(pointed_thing.under, placer:get_player_name()) and (not minetest.check_player_privs(puncher, {train_remove = true }))then\r
+                               minetest.chat_send_player(placer:get_player_name(), S("This position is protected!"))\r
+                               return itemstack\r
+                       end\r
                        local conn1=advtrains.get_track_connections(node.name, node.param2)\r
                        local id=advtrains.create_new_train_at(pointed_thing.under, advtrains.dirCoordSet(pointed_thing.under, conn1))\r
                        \r
diff --git a/advtrains/advtrains_subwayblocks/init.lua b/advtrains/advtrains_subwayblocks/init.lua
new file mode 100644 (file)
index 0000000..0433c52
--- /dev/null
@@ -0,0 +1,4 @@
+minetest.register_node("advtrains_subwayblocks:germany", {     description = "German subway sign",
+                                                               tiles = {"advtrains_subwayblocks_u_top.png", "advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png","advtrains_subwayblocks_u-bahn-sign.png"},
+                                                               groups = {cracky=3},
+})
diff --git a/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_london.png b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_london.png
new file mode 100644 (file)
index 0000000..04e702b
Binary files /dev/null and b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_london.png differ
diff --git a/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_madrid.png b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_madrid.png
new file mode 100644 (file)
index 0000000..176e56d
Binary files /dev/null and b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_madrid.png differ
diff --git a/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_paris.png b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_paris.png
new file mode 100644 (file)
index 0000000..2ddaf23
Binary files /dev/null and b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_paris.png differ
diff --git a/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u-bahn-sign.png b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u-bahn-sign.png
new file mode 100644 (file)
index 0000000..d6a21ff
Binary files /dev/null and b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u-bahn-sign.png differ
diff --git a/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u_top.png b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u_top.png
new file mode 100644 (file)
index 0000000..9f02ffd
Binary files /dev/null and b/advtrains/advtrains_subwayblocks/textures/advtrains_subwayblocks_u_top.png differ