commit 11a1bfe4d493364a0848088269a73c9103e1120e Author: NathanSalapat Date: Sun Dec 18 15:42:25 2016 -0600 first commit diff --git a/credits.txt b/credits.txt new file mode 100644 index 0000000..ce69081 --- /dev/null +++ b/credits.txt @@ -0,0 +1,11 @@ +Graphics by Nathan(CC-BY-SA 4.0) +mobs_penguin +mobs_walrus1 +mobs_walrus2 + +Graphics by DuCake (CC-BY-SA 4.0) +mobs_penguin_tux + +Sound: +penguin_chirrup.ogg +Tai "DuCake" Kedzierski CC-BY-SA 4.0 diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..cbfbcdb --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +mobs \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..480bf7b --- /dev/null +++ b/init.lua @@ -0,0 +1,2 @@ +dofile(minetest.get_modpath('artic_life')..'/penguin.lua') +dofile(minetest.get_modpath('artic_life')..'/walrus.lua') diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..ec31033 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name=artic_life diff --git a/models/mobs_penguin.b3d b/models/mobs_penguin.b3d new file mode 100644 index 0000000..6f47025 Binary files /dev/null and b/models/mobs_penguin.b3d differ diff --git a/models/mobs_walrus.b3d b/models/mobs_walrus.b3d new file mode 100644 index 0000000..c65764b Binary files /dev/null and b/models/mobs_walrus.b3d differ diff --git a/penguin.lua b/penguin.lua new file mode 100644 index 0000000..99f6f0c --- /dev/null +++ b/penguin.lua @@ -0,0 +1,55 @@ +mobs:register_mob("artic_life:penguin", { + type = "animal", + passive = false, + attack_type = "dogfight", + reach = 1, + damage = 2, + hp_min = 5, + hp_max = 15, + armor = 200, + collisionbox = {-0.25, -0.4, -0.25, 0.25, 0.3, 0.25}, + visual = "mesh", + mesh = "mobs_penguin.b3d", + drawtype = "front", + textures = { + {"mobs_penguin.png"}, + {"mobs_penguin_tux.png"}, + }, + blood_texture = "mobs_blood.png", + visual_size = {x=8,y=8}, + makes_footstep_sound = true, + sounds = { + random = "penguin_chirrup", + }, + -- speed and jump + walk_velocity = 1, + run_velocity = 2, + jump = true, + jump_height = 1, + stepheight = 1.1, + floats = 1, + -- drops raw meat when dead + drops = { + {name = "mobs:meat_raw", + chance = 1, min = 1, max = 4}, + }, + -- damaged by + water_damage = 1, + lava_damage = 5, + light_damage = 0, + -- model animation + animation = { + speed_normal = 15, speed_run = 15, + stand_start = 0, stand_end = 60, -- head down/up + walk_start = 150, walk_end = 170, -- walk + run_start = 150, run_end = 170, -- walk + punch_start = 70, punch_end = 140, -- attack + }, + follow = "farming:wheat", view_range = 7, + replace_rate = 50, + replace_what = {"group:flora"}, + replace_with = "air", +}) + +mobs:register_spawn("artic_life:penguin", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 31000) +mobs:register_egg("artic_life:penguin", "Penguin", "default_grass.png", 1) diff --git a/sounds/penguin_chirrup.ogg b/sounds/penguin_chirrup.ogg new file mode 100644 index 0000000..865dec9 Binary files /dev/null and b/sounds/penguin_chirrup.ogg differ diff --git a/textures/mobs_penguin.png b/textures/mobs_penguin.png new file mode 100644 index 0000000..977ac43 Binary files /dev/null and b/textures/mobs_penguin.png differ diff --git a/textures/mobs_penguin_tux.png b/textures/mobs_penguin_tux.png new file mode 100644 index 0000000..aaa6f4b Binary files /dev/null and b/textures/mobs_penguin_tux.png differ diff --git a/textures/mobs_walrus1.png b/textures/mobs_walrus1.png new file mode 100644 index 0000000..c981d59 Binary files /dev/null and b/textures/mobs_walrus1.png differ diff --git a/textures/mobs_walrus2.png b/textures/mobs_walrus2.png new file mode 100644 index 0000000..88e6439 Binary files /dev/null and b/textures/mobs_walrus2.png differ diff --git a/walrus.lua b/walrus.lua new file mode 100644 index 0000000..ffc6c0a --- /dev/null +++ b/walrus.lua @@ -0,0 +1,55 @@ +mobs:register_mob("artic_life:walrus", { + type = "animal", + passive = false, + attack_type = "dogfight", + reach = 1, + damage = 5, + hp_min = 5, + hp_max = 15, + armor = 200, + collisionbox = {-0.25, -0.4, -0.25, 0.25, 0.3, 0.25}, + visual = "mesh", + mesh = "mobs_walrus.b3d", + drawtype = "front", + textures = { + {"mobs_walrus1.png"}, + {"mobs_walrus2.png"}, + }, + blood_texture = "mobs_blood.png", + visual_size = {x=8,y=8}, + makes_footstep_sound = false, +-- sounds = { +-- random = "penguin_chirrup", +-- }, + -- speed and jump + walk_velocity = 1, + run_velocity = 2, + jump = true, + jump_height = 1, + stepheight = 1.1, + floats = 1, + -- drops raw meat when dead + drops = { + {name = "mobs:meat_raw", + chance = 1, min = 2, max = 5}, + }, + -- damaged by + water_damage = 1, + lava_damage = 5, + light_damage = 0, + -- model animation + animation = { + speed_normal = 15, speed_run = 15, + stand_start = 0, stand_end = 50, -- head down/up + walk_start = 55, walk_end = 95, -- walk + run_start = 55, run_end = 95, -- walk + punch_start = 100, punch_end = 145, -- attack + }, + follow = "farming:wheat", view_range = 7, + replace_rate = 50, + replace_what = {"group:flora"}, + replace_with = "air", +}) + +mobs:register_spawn("artic_life:walrus", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 31000) +mobs:register_egg("artic_life:walrus", "Walrus", "default_grass.png", 1)