Make trusses, trestles, and wooden bridges optional.
parent
5336954e37
commit
52492735eb
58
nodes.lua
58
nodes.lua
|
@ -23,6 +23,8 @@ local function rotate_and_place(itemstack, placer, pointed_thing)
|
|||
return minetest.item_place(itemstack, placer, pointed_thing, param2)
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("bridger_enable_trusses") then
|
||||
|
||||
local bridge_colors = {
|
||||
{"Green", "green"},
|
||||
{"Red", "red"},
|
||||
|
@ -35,6 +37,31 @@ for _, row in ipairs(bridge_colors) do
|
|||
local bridge_desc = row[1]
|
||||
local bridge_colors = row[2]
|
||||
|
||||
minetest.register_node("bridger:foundation", {
|
||||
description = "Bridge Foundation",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_clay.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.75, 0.5, 0.501, 0.75}, -- NodeBox1
|
||||
{-0.501, -0.5, -0.501, 0.501, 0.6876, 0.501}, -- NodeBox2
|
||||
{-0.75, -0.5, -0.5, 0.75, 0.501, 0.5}, -- NodeBox3
|
||||
{-0.75, -0.5, -0.75, 0.75, 0.499, 0.75}, -- NodeBox4
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("bridger:block_"..bridge_colors, {
|
||||
description = bridge_desc.." Block",
|
||||
drawtype = "normal",
|
||||
|
@ -3652,9 +3679,10 @@ minetest.register_node("bridger:corrugated_steel_ceiling_"..bridge_colors, {
|
|||
groups = {cracky=3},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("bridger_enable_trestles") then
|
||||
minetest.register_node("bridger:trestle_support", {
|
||||
description = "Trestle Support",
|
||||
drawtype = "nodebox",
|
||||
|
@ -4063,7 +4091,9 @@ minetest.register_node("bridger:lattice_truss_top", {
|
|||
groups = {choppy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.settings:get_bool("bridger_enable_wooden_bridges") then
|
||||
minetest.register_node("bridger:small_beam", {
|
||||
description = "Small Wooden Beam Bridge",
|
||||
drawtype = "nodebox",
|
||||
|
@ -4777,28 +4807,4 @@ minetest.register_node("bridger:deck_wood", {
|
|||
groups = {choppy=3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("bridger:foundation", {
|
||||
description = "Bridge Foundation",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"default_clay.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.75, 0.5, 0.501, 0.75}, -- NodeBox1
|
||||
{-0.501, -0.5, -0.501, 0.501, 0.6876, 0.501}, -- NodeBox2
|
||||
{-0.75, -0.5, -0.5, 0.75, 0.501, 0.5}, -- NodeBox3
|
||||
{-0.75, -0.5, -0.75, 0.75, 0.499, 0.75}, -- NodeBox4
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||
},
|
||||
},
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
end
|
|
@ -1,3 +1,15 @@
|
|||
#Setting of Bridger
|
||||
# Bridger Settings
|
||||
|
||||
Bridger_enable_alias (For use old alias of Bridges) bool false
|
||||
# Enable aliasing for old worlds using Bridger.
|
||||
Bridger_enable_alias (Use compatability aliasing) bool false
|
||||
|
||||
# Enable wooden footbridges and drawbridges. This setting does not include
|
||||
# trestles.
|
||||
bridger_enable_wooden_bridges (Enable wooden bridges) bool true
|
||||
|
||||
# Enable wooden trestle bridge components.
|
||||
bridger_enable_trestles (Enable trestles) bool true
|
||||
|
||||
# Enable metal truss bridges (Tubular, truss supports, substructure,
|
||||
# superstructure, chords, deck, etc.) Also enables concrete supports.
|
||||
bridger_enable_trusses (Enable metal trusses) bool true
|
Loading…
Reference in New Issue