mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-23 17:30:30 +01:00
blast-resistant concrete stairs/slopes/et. al (#455)
if moreblocks is installed.
This commit is contained in:
parent
8409be32fc
commit
2b2411d1ee
@ -1,4 +1,4 @@
|
||||
default
|
||||
basic_materials
|
||||
intllib?
|
||||
|
||||
moreblocks?
|
||||
|
@ -61,6 +61,20 @@ minetest.register_node(":technic:blast_resistant_concrete", {
|
||||
end,
|
||||
})
|
||||
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("technic","blast_resistant_concrete","technic:blast_resistant_concrete",{
|
||||
description = "Blast-resistant Concrete",
|
||||
tiles = {"technic_blast_resistant_concrete_block.png",},
|
||||
groups = {cracky=1, level=3, concrete=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_blast = function(pos, intensity)
|
||||
if intensity > 1 then
|
||||
minetest.remove_node(pos)
|
||||
minetest.add_item(pos, "technic:blast_resistant_concrete")
|
||||
end
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
local box_platform = {-0.5, 0.3, -0.5, 0.5, 0.5, 0.5}
|
||||
local box_post = {-0.15, -0.5, -0.15, 0.15, 0.5, 0.15}
|
||||
|
Loading…
Reference in New Issue
Block a user