commit 0f939d93043aef6faa7ca277de57b928aba74cd6 Author: NathanSalapat Date: Wed Dec 14 10:12:59 2016 -0600 initial upload. 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..34be3ea --- /dev/null +++ b/init.lua @@ -0,0 +1,53 @@ +if mobs.mod and mobs.mod == "redo" then + +mobs:register_mob("penguin:penguin", { + type = "animal", + passive = false, + attack_type = "dogfight", + damage = 2, + hp_min = 5, hp_max = 15, armor = 200, + collisionbox = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}, + visual = "mesh", + mesh = "mobs_penguin.b3d", + drawtype = "front", + textures = { + {"mobs_penguin.png"}, + }, + blood_texture = "mobs_blood.png", + visual_size = {x=8,y=8}, + makes_footstep_sound = true, +-- sounds = { +-- random = "mobs_sheep", +-- }, + -- speed and jump + walk_velocity = 1, + run_velocity = 2, + jump = true, + stepheight = 1.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("penguin:penguin", {"default:dirt_with_snow", "default:snowblock"}, 20, 0, 20000, 1, 31000) +mobs:register_egg("penguin:penguin", "Penguin", "default_grass.png", 1) + +end diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..f270aa6 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +name=penguin 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/textures/mobs_penguin.png b/textures/mobs_penguin.png new file mode 100644 index 0000000..446281c Binary files /dev/null and b/textures/mobs_penguin.png differ