Difference between revisions of "LinuxWorks Bahn"

From LinuxWorks Minetest Server Wiki
Jump to navigation Jump to search
(Created page with "The state railway operator has a new branding, which bears a distinct resemblance (but is definitely not to be confused with) a certain German and multinational rail operator....")
 
(No difference)

Latest revision as of 09:49, 13 September 2019

The state railway operator has a new branding, which bears a distinct resemblance (but is definitely not to be confused with) a certain German and multinational rail operator.

See the icons in Category:LWBahn_Icons for textures

  • Lwbahn {16,32}x{,_wall}.png

Code

   mods/advtrains_subwayblocks/init.lua:
   for k,v in pairs({"16x", "32x"}) do
       minetest.register_node("advtrains_subwayblocks:lwbahn_"..v, {
           description = "LW Bahn Sign",
           tiles = {"lwbahn_top.png", "lwbahn_top.png",
               "lwbahn_"..v..".png", "lwbahn_"..v..".png",
               "lwbahn_"..v..".png", "lwbahn_"..v..".png"},
           drawtypee = "nodebox",
           paramtype2 = "wallmounted",
           legacy_wallmounted = true,
           paramtype=light,
           light_source=12,
           sunlight_propagates = true,
           is_ground_content = false,
           walkable = false,
       })
       minetest.register_node("advtrains_subwayblocks:lwbahn_wall"..v, {
                   description = "LW Bahn Wall"..v,
               tiles = {"lwbahn_top.png", "lwbahn_top.png",
               "lwbahn_"..v.."_wall.png", "lwbahn_"..v.."_wall.png",
               "lwbahn_"..v.."_wall.png", "lwbahn_"..v.."_wall.png"},
               drawtype = "nodebox",
               paramtype2 = "wallmounted",
               legacy_wallmounted = true,
               paramtype=light,
               light_source=12,
               sunlight_propagates = true,
               is_ground_content = false,
               walkable = false,
               
               groups = {choppy = 2, attached_node = 1, flammable = 2, oddly_breakable_by_hand = 3},            
               node_box = {
                   type = "wallmounted",
                   wall_top = {-0.5, -0.4375, -0.5, -0.4375, 0.5, 0.5},
                   wall_bottom = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
                   wall_side = {-0.5, -0.375, -0.5, -0.4375, 0.375, 0.5},
                                               
               }
               
   })
   end