add steel strut that looks like it has a band wrapped around it
meant to be used when something is placed against the side, so that that thing appears to be mounted to the strut, such as a Technic mains transformer ("supply converter") mounted near the top of a tall electrical pole. Note: uses wallmounted param2 to allow rotation, rather than facedir mode. I want to allow for Unified Dyes colorization of a derivative of this node in another mod, and wallmounted mode uses fewer bits for rotation than facedir, leaving more for color info.
This commit is contained in:
parent
f188fb6893
commit
fe1775ddad
41
init.lua
41
init.lua
@ -100,8 +100,11 @@ minetest.register_node("steel:plate_rusted", {
|
|||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local base_tex = "strut.png"
|
||||||
|
|
||||||
if minetest.registered_nodes["streets:steel_support"] then
|
if minetest.registered_nodes["streets:steel_support"] then
|
||||||
minetest.register_alias("steel:strut","streets:steel_support")
|
minetest.register_alias("steel:strut","streets:steel_support")
|
||||||
|
base_tex = "streets_support.png"
|
||||||
else
|
else
|
||||||
minetest.register_node("steel:strut", {
|
minetest.register_node("steel:strut", {
|
||||||
drawtype = "glasslike",
|
drawtype = "glasslike",
|
||||||
@ -114,6 +117,26 @@ else
|
|||||||
})
|
})
|
||||||
minetest.register_alias("streets:steel_support","steel:strut")
|
minetest.register_alias("streets:steel_support","steel:strut")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
minetest.register_node("steel:strut_mount", {
|
||||||
|
description = "Strut with mount",
|
||||||
|
drawtype = "mesh",
|
||||||
|
mesh = "steel_cube.obj",
|
||||||
|
tiles = {
|
||||||
|
base_tex,
|
||||||
|
base_tex,
|
||||||
|
base_tex.."^steel_strut_overlay.png",
|
||||||
|
base_tex.."^steel_strut_overlay.png",
|
||||||
|
base_tex.."^steel_strut_overlay.png",
|
||||||
|
base_tex.."^steel_strut_overlay.png",
|
||||||
|
},
|
||||||
|
is_ground_content = true,
|
||||||
|
paramtype= "light",
|
||||||
|
paramtype2 = "wallmounted",
|
||||||
|
groups = {choppy=1,cracky=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("steel:grate_soft", {
|
minetest.register_node("steel:grate_soft", {
|
||||||
description = "Soft Steel Grate",
|
description = "Soft Steel Grate",
|
||||||
drawtype = "fencelike",
|
drawtype = "fencelike",
|
||||||
@ -266,6 +289,22 @@ minetest.register_craft({
|
|||||||
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
|
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'steel:strut_mount',
|
||||||
|
recipe = {
|
||||||
|
{'steel:strut', 'default:steel_ingot'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'steel:strut_mount',
|
||||||
|
recipe = {
|
||||||
|
{'streets:steel_support', 'default:steel_ingot'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
--remelting recipes
|
--remelting recipes
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -318,5 +357,3 @@ minetest.register_craft({
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
50
models/steel_cube.obj
Normal file
50
models/steel_cube.obj
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# Blender v2.79 (sub 0) OBJ File: 'simple-cube.blend'
|
||||||
|
# www.blender.org
|
||||||
|
o Cube_Cube.001
|
||||||
|
v 0.499468 -0.499468 -0.499468
|
||||||
|
v 0.499468 0.499468 -0.499468
|
||||||
|
v 0.499468 -0.499468 0.499468
|
||||||
|
v 0.499468 0.499468 0.499468
|
||||||
|
v -0.499468 -0.499468 -0.499468
|
||||||
|
v -0.499468 0.499468 -0.499468
|
||||||
|
v -0.499468 -0.499468 0.499468
|
||||||
|
v -0.499468 0.499468 0.499468
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt -0.000000 1.000000
|
||||||
|
vt 0.000000 -0.000000
|
||||||
|
vt 1.000000 0.000000
|
||||||
|
vt 0.000000 -0.000000
|
||||||
|
vt 1.000000 0.000000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt -0.000000 1.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt -0.000000 0.000000
|
||||||
|
vt 1.000000 -0.000000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 1.000000 -0.000000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 0.000000 1.000000
|
||||||
|
vt -0.000000 0.000000
|
||||||
|
vt 1.000000 0.000000
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt -0.000000 1.000000
|
||||||
|
vt 0.000000 -0.000000
|
||||||
|
vn 0.0000 1.0000 0.0000
|
||||||
|
vn 0.0000 -1.0000 0.0000
|
||||||
|
vn -1.0000 0.0000 0.0000
|
||||||
|
vn 1.0000 0.0000 0.0000
|
||||||
|
vn 0.0000 0.0000 1.0000
|
||||||
|
vn 0.0000 0.0000 -1.0000
|
||||||
|
g Cube_Cube.001_top
|
||||||
|
s off
|
||||||
|
f 8/1/1 4/2/1 2/3/1 6/4/1
|
||||||
|
g Cube_Cube.001_bottom
|
||||||
|
f 3/5/2 7/6/2 5/7/2 1/8/2
|
||||||
|
g Cube_Cube.001_right
|
||||||
|
f 7/6/3 8/1/3 6/9/3 5/10/3
|
||||||
|
g Cube_Cube.001_left
|
||||||
|
f 1/11/4 2/12/4 4/2/4 3/5/4
|
||||||
|
g Cube_Cube.001_back
|
||||||
|
f 3/13/5 4/14/5 8/15/5 7/16/5
|
||||||
|
g Cube_Cube.001_front
|
||||||
|
f 5/17/6 6/18/6 2/19/6 1/20/6
|
BIN
textures/steel_strut_overlay.png
Normal file
BIN
textures/steel_strut_overlay.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 123 B |
Loading…
x
Reference in New Issue
Block a user