This is an experimental copy for testing Poikilos' issue mirroring system. Note that Gitea's migration tool can import issues, but the "Issues" checkbox is disabled when "This repository will be a mirror" is enabled (it is for this repo).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

117 lines
3.3 KiB

-- Oerkki.
-- ===================================================================
local lcname = "oerkki"
local ucname = "Oerkki"
local msname = "codermobs_" .. lcname
local obj_name = "codermobs:" .. lcname
-- ===================================================================
mobs_param = {
lcname = lcname ,
ucname = ucname ,
obj_name = obj_name ,
aoc = 1 ,
day_mode = false ,
min_light = 0 ,
max_light = 7 ,
min_height = -31000 ,
max_height = -51 ,
spawn_chance = 288 ,
spawn_type = "monster" ,
spawn_nodes = {
-- "default:stone" ,
"default:cobble" ,
"default:desert_stone" ,
"default:mossycobble" ,
"default:sandstonebrick",
} ,
add_egg = true ,
egg_image = "default_obsidian.png" ,
}
-- ===================================================================
codermobs.adjust_param()
-- ===================================================================
mobs_param.core_param = {
type = mobs_param.spawn_type ,
passive = false ,
runaway = true ,
attack_animals = true ,
attack_type = "dogfight" ,
damage = 4 ,
view_range = 10 ,
reach = 2 ,
-- This mob eats torches
replace_offset = -1 ,
replace_rate = 5 ,
replace_what = { "default:torch" } ,
replace_with = "air" ,
hp_min = 8 ,
hp_max = 34 ,
armor = 100 ,
lava_damage = 4 ,
light_damage = 1 ,
water_damage = 2 ,
immune_to = {
{ "default:sword_wood" , 0 } , -- No damage
{ "default:gold_lump" , -10 } , -- Heals by 10 points
},
drops = {
{ name = "default:obsidian" ,
chance = 3, min = 1, max = 2 } ,
},
collisionbox = { -0.4, -1, -0.4, 0.4, 0.9, 0.4 } ,
visual = "mesh" ,
mesh = "codermobs_oerkki.b3d" ,
textures = {
{ "codermobs_oerkki1.png" } ,
{ "codermobs_oerkki2.png" } ,
},
pathfinding = true ,
stepheight = 1.2 ,
fear_height = 4 ,
jump_height = 0 ,
jump = false ,
floats = 0 ,
walk_velocity = 1 ,
run_velocity = 3 ,
animation = {
stand_start = 0 ,
stand_end = 23 ,
walk_start = 24 ,
walk_end = 36 ,
run_start = 37 ,
run_end = 49 ,
punch_start = 37 ,
punch_end = 49 ,
speed_normal = 15 ,
speed_run = 15 ,
},
sounds = {
random = "codermobs_oerkki" ,
},
makes_footstep_sound = false ,
}
-- ===================================================================
codermobs.setup_mob()
mobs:alias_mob ("mobs_monster:oerkki" , obj_name)
codermobs.log_done()
-- ===================================================================
-- End of file.