Compare commits
5 Commits
a6bea5aabc
...
7d3e37ec30
Author | SHA1 | Date |
---|---|---|
Vanessa Dannenberg | 7d3e37ec30 | |
cheapie | bbc7bc0e48 | |
Vanessa Dannenberg | 7715f09af0 | |
Vanessa Dannenberg | 2b2e760c0d | |
Auke Kok | 04e74d5ec8 |
32
init.lua
32
init.lua
|
@ -21,11 +21,11 @@ function steel_node_is_owned(pos, placer)
|
|||
end
|
||||
end
|
||||
|
||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||
elseif type(isprotect)=="function" then -- glomie's protection mod
|
||||
if not isprotect(5, pos, placer) then
|
||||
ownername = "someone"
|
||||
end
|
||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||
elseif type(protector)=="table" and type(protector.can_dig)=="function" then -- Zeg9's protection mod
|
||||
if not protector.can_dig(5, pos, placer) then
|
||||
ownername = "someone"
|
||||
end
|
||||
|
@ -58,7 +58,7 @@ function steel_rotate_and_place(itemstack, placer, pointed_thing)
|
|||
local iswall = (above.x ~= under.x) or (above.z ~= under.z)
|
||||
local isceiling = (above.x == under.x) and (above.z == under.z) and (pitch > 0)
|
||||
|
||||
if iswall then
|
||||
if iswall then
|
||||
local dirs = { 2, 3, 0, 1 }
|
||||
minetest.add_node(above, {name = wield_name.."_wall", param2 = dirs[fdir+1] }) -- place wall variant
|
||||
elseif isceiling then
|
||||
|
@ -102,7 +102,10 @@ minetest.register_node("steel:plate_rusted", {
|
|||
|
||||
local base_tex = "strut.png"
|
||||
|
||||
if minetest.registered_nodes["streets:steel_support"] then
|
||||
local streetsmod = minetest.get_modpath("streets") or minetest.get_modpath("steelsupport")
|
||||
-- cheapie's fork breaks it into several individual mods, with different names for the same content.
|
||||
|
||||
if streetsmod then
|
||||
minetest.register_alias("steel:strut","streets:steel_support")
|
||||
base_tex = "streets_support.png"
|
||||
else
|
||||
|
@ -217,15 +220,15 @@ minetest.register_node("steel:roofing_wall", {
|
|||
})
|
||||
|
||||
if homedecor_register_slope and homedecor_register_roof then
|
||||
homedecor_register_slope("steel", "roofing",
|
||||
"steel:roofing",
|
||||
{bendy=2,snappy=1,dig_immediate=2},
|
||||
{"corrugated_steel.png"},
|
||||
homedecor_register_slope("steel", "roofing",
|
||||
"steel:roofing",
|
||||
{bendy=2,snappy=1,dig_immediate=2},
|
||||
{"corrugated_steel.png"},
|
||||
"Corrugated steel roofing"
|
||||
)
|
||||
homedecor_register_roof("steel", "roofing",
|
||||
{bendy=2,snappy=1,dig_immediate=2},
|
||||
{"corrugated_steel.png"},
|
||||
homedecor_register_roof("steel", "roofing",
|
||||
{bendy=2,snappy=1,dig_immediate=2},
|
||||
{"corrugated_steel.png"},
|
||||
"Corrugated steel roofing"
|
||||
)
|
||||
end
|
||||
|
@ -272,7 +275,8 @@ minetest.register_craft({
|
|||
})
|
||||
|
||||
-- only register this craft if streets is not loaded
|
||||
if not minetest.registered_nodes["streets:steel_support"] then
|
||||
|
||||
if not streetsmod then
|
||||
minetest.register_craft({
|
||||
output = 'steel:strut 5',
|
||||
recipe = {
|
||||
|
@ -369,13 +373,15 @@ if minetest.get_modpath("unifieddyes") then
|
|||
groups = {cracky=1, level=2, ud_param2_colorable=1, not_in_creative_inventory=1},
|
||||
on_construct = unifieddyes.on_construct,
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
on_dig = unifieddyes.on_dig,
|
||||
})
|
||||
|
||||
minetest.override_item("default:steelblock", {
|
||||
palette = "unifieddyes_palette_extended.png",
|
||||
airbrush_replacement_node = "steel:steel_block",
|
||||
groups = {cracky=1, level=2, ud_param2_colorable=1},
|
||||
})
|
||||
|
||||
|
||||
unifieddyes.register_color_craft({
|
||||
output = "steel:steel_block",
|
||||
palette = "extended",
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in New Issue