2017-02-10 07:28:16 +01:00
|
|
|
-- da wooden banner
|
2024-11-29 10:45:55 +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",
|
2024-12-09 12:19:40 +01:00
|
|
|
after_place_node = banners.banner_after_place,
|
|
|
|
on_destruct = banners.banner_on_destruct,
|
|
|
|
on_use = banners.banner_on_use,
|
|
|
|
on_dig = banners.banner_on_dig,
|
|
|
|
on_movenode = banners.banner_on_movenode,
|
2024-11-29 10:45:55 +01:00
|
|
|
})
|
2017-02-10 07:28:16 +01:00
|
|
|
|
|
|
|
-- steel banner
|
2024-11-29 10:45:55 +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",
|
2024-12-09 12:19:40 +01:00
|
|
|
after_place_node = banners.banner_after_place,
|
|
|
|
on_destruct = banners.banner_on_destruct,
|
|
|
|
on_use = banners.banner_on_use,
|
|
|
|
on_dig = banners.banner_on_dig,
|
|
|
|
on_movenode = banners.banner_on_movenode,
|
2024-11-29 10:45:55 +01:00
|
|
|
})
|
2017-02-10 07:28:16 +01:00
|
|
|
|