mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2025-01-24 17:20:19 +01:00
random orientation of plump helmets
This commit is contained in:
parent
c00bd7152c
commit
92ff6aef2f
25
plants.lua
25
plants.lua
@ -161,7 +161,10 @@ minetest.register_node("dfcaverns:plump_helmet_spawn", {
|
||||
fixed = {
|
||||
{-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, -0.375, 0.0625 + displace_z},
|
||||
}
|
||||
}
|
||||
},
|
||||
on_construct = function(pos)
|
||||
minetest.swap_node(pos, {name="dfcaverns:plump_helmet_spawn", param2 = math.random(0,3)})
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
@ -182,7 +185,10 @@ minetest.register_node("dfcaverns:plump_helmet_1", {
|
||||
{-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, -0.25, 0.0625 + displace_z}, -- stalk
|
||||
{-0.125 + displace_x, -0.4375, -0.1875 + displace_z, 0.1875 + displace_x, -0.3125, 0.125 + displace_z}, -- cap
|
||||
}
|
||||
}
|
||||
},
|
||||
on_construct = function(pos)
|
||||
minetest.swap_node(pos, {name="dfcaverns:plump_helmet_1", param2 = math.random(0,3)})
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
@ -203,7 +209,10 @@ minetest.register_node("dfcaverns:plump_helmet_2", {
|
||||
{-0.0625 + displace_x, -0.5, -0.125 + displace_z, 0.125 + displace_x, 0, 0.0625 + displace_z}, -- stalk
|
||||
{-0.125 + displace_x, -0.3125, -0.1875 + displace_z, 0.1875 + displace_x, -0.0625, 0.125 + displace_z}, -- cap
|
||||
}
|
||||
}
|
||||
},
|
||||
on_construct = function(pos)
|
||||
minetest.swap_node(pos, {name="dfcaverns:plump_helmet_2", param2 = math.random(0,3)})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("dfcaverns:plump_helmet_3", {
|
||||
@ -223,7 +232,10 @@ minetest.register_node("dfcaverns:plump_helmet_3", {
|
||||
{-0.125 + displace_x, -0.5, -0.1875 + displace_z, 0.1875 + displace_x, 0.25, 0.125 + displace_z}, -- stalk
|
||||
{-0.1875 + displace_x, -0.125, -0.25 + displace_z, 0.25 + displace_x, 0.1875, 0.1875 + displace_z}, -- cap
|
||||
}
|
||||
}
|
||||
},
|
||||
on_construct = function(pos)
|
||||
minetest.swap_node(pos, {name="dfcaverns:plump_helmet_3", param2 = math.random(0,3)})
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("dfcaverns:plump_helmet_4", {
|
||||
@ -244,7 +256,10 @@ minetest.register_node("dfcaverns:plump_helmet_4", {
|
||||
{-0.25 + displace_x, -0.0625, -0.3125 + displace_z, 0.3125 + displace_x, 0.25, 0.25 + displace_z}, -- cap
|
||||
{-0.1875 + displace_x, 0.25, -0.25 + displace_z, 0.25 + displace_x, 0.3125, 0.1875 + displace_z}, -- cap rounding
|
||||
}
|
||||
}
|
||||
},
|
||||
on_construct = function(pos)
|
||||
minetest.swap_node(pos, {name="dfcaverns:plump_helmet_4", param2 = math.random(0,3)})
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user