2017-02-10 07:28:16 +01:00
|
|
|
-- da wooden banner
|
2024-11-27 22:32:24 +01:00
|
|
|
core.register_node("banners:wooden_banner", {
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "banner_support.x",
|
|
|
|
tiles = { "banner_support.png" },
|
|
|
|
description = "Wooden banner",
|
|
|
|
groups = { choppy = 2, dig_immediate = 2 },
|
|
|
|
is_ground_content = false,
|
|
|
|
diggable = true,
|
|
|
|
stack_max = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
after_place_node = function (pos, player, itemstack, pointed_thing)
|
|
|
|
banners.banner_after_place(pos, player, itemstack, pointed_thing)
|
|
|
|
end,
|
|
|
|
on_destruct = function(pos)
|
|
|
|
banners.banner_on_destruct(pos)
|
|
|
|
end,
|
|
|
|
on_use = function(i, p, pt)
|
|
|
|
banners.banner_on_use(i, p, pt)
|
|
|
|
end,
|
|
|
|
on_dig = function(pos, n, p)
|
|
|
|
banners.banner_on_dig(pos, n, p)
|
|
|
|
end
|
|
|
|
})
|
2017-02-10 07:28:16 +01:00
|
|
|
|
|
|
|
-- steel banner
|
2024-11-27 22:32:24 +01:00
|
|
|
core.register_node("banners:steel_banner", {
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "banner_support.x",
|
|
|
|
tiles = { "steel_support.png" },
|
|
|
|
description = "Steel banner",
|
|
|
|
groups = { cracky = 2 },
|
|
|
|
is_ground_content = false,
|
|
|
|
diggable = true,
|
|
|
|
stack_max = 1,
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
after_place_node = function (pos, player, itemstack, pointed_thing)
|
|
|
|
banners.banner_after_place(pos, player, itemstack, pointed_thing)
|
|
|
|
end,
|
|
|
|
on_destruct = function(pos)
|
|
|
|
banners.banner_on_destruct(pos)
|
|
|
|
end,
|
|
|
|
on_use = function(i, p, pt)
|
|
|
|
banners.banner_on_use(i, p, pt)
|
|
|
|
end,
|
|
|
|
on_dig = function(pos, n, p)
|
|
|
|
banners.banner_on_dig(pos, n, p)
|
|
|
|
end
|
2017-02-10 07:28:16 +01:00
|
|
|
|
2024-11-27 22:32:24 +01:00
|
|
|
})
|
2017-02-10 07:28:16 +01:00
|
|
|
|