dfcaverns/df_underworld_items/hunter_statue.lua

29 lines
1020 B
Lua
Raw Normal View History

2020-11-11 04:51:37 +01:00
if minetest.get_modpath("hunter_statue") and df_underworld_items.config.underworld_hunter_statues then
local S = df_underworld_items.S
hunter_statue.register_hunter_statue("df_underworld_items:hunter_statue", {
description = S("Guardian Statue"),
chance = 2,
tiles = {
{ name = "dfcaverns_slade.png", backface_culling = true },
2020-11-20 02:28:04 +01:00
{ name = "dfcaverns_slade.png^(dfcaverns_statue_eyes.png^[opacity:128)", backface_culling = true },
{ name = "dfcaverns_slade.png^(dfcaverns_statue_fang_overlay.png^[opacity:128)", backface_culling = true },
2020-11-11 04:51:37 +01:00
},
tnt_vulnerable = true,
tnt_debris = "df_underworld_items:slade_sand",
groups = {hunter_statue = 1, falling_node = 1, immortal = 1},
hunters_allowed_here = function(pos)
return not minetest.find_node_near(pos, 6, "df_underworld_items:ancient_lantern_slade", true)
end,
2020-11-11 04:51:37 +01:00
other_overrides = {
can_dig = function(pos, player)
2020-11-11 05:04:11 +01:00
if player then
return minetest.check_player_privs(player, "server")
end
return false
2020-11-11 04:51:37 +01:00
end,
}
})
end