From c14f036893179ce38a6e2a2ed9dde84427c83585 Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Wed, 19 Sep 2012 18:17:42 +0200 Subject: [PATCH] Add oerkki --- README.txt | 4 +++- init.lua | 19 +++++++++++++++++++ textures/mobs_oerkki.png | Bin 0 -> 239 bytes textures/mobs_oerkki_back.png | Bin 0 -> 224 bytes 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 textures/mobs_oerkki.png create mode 100644 textures/mobs_oerkki_back.png diff --git a/README.txt b/README.txt index 1c99d58..d56baf2 100644 --- a/README.txt +++ b/README.txt @@ -14,13 +14,15 @@ For further information or help see: http://wiki.minetest.com/wiki/Installing_Mods How to use the mod: -There are 3 hostile mobs that want to kill the player: +There are 4 hostile mobs that want to kill the player: - The dirt monster spawns at night on grass and get killed on day when its too light. - The stone monster spawns on stone and is stronger but slower than the dirt monster - The desert monster spawns in deserts and is faster but less strong than the dirt monster +- The oerkki is the same as in 0.3. It spawns in realy dark caves and + is stronger than the dirt monster. There are also 2 friendly mobs: - The sheep spawns on grass. You can get wool from it when you rightclick it and meat if you kill it. Meat can bee cooked in the furnace to eat it. diff --git a/init.lua b/init.lua index bfa5ec4..819926f 100644 --- a/init.lua +++ b/init.lua @@ -544,3 +544,22 @@ minetest.register_craft({ recipe = "mobs:rat", cooktime = 5, }) + +mobs:register_monster("mobs:oerkki", { + hp_max = 8, + collisionbox = {-0.4, -1, -0.4, 0.4, 1, 0.4}, + visual = "upright_sprite", + visual_size = {x=1, y=2}, + textures = {"mobs_oerkki.png", "mobs_oerkki_back.png"}, + makes_footstep_sound = false, + view_range = 15, + walk_velocity = 1, + run_velocity = 3, + damage = 4, + drop = "", + drop_count = 0, + armor = 3, + drawtype = "front", + light_resistant = true, +}) +mobs:register_spawn("mobs:oerkki", {"default:stone"}, 2, -1) diff --git a/textures/mobs_oerkki.png b/textures/mobs_oerkki.png new file mode 100644 index 0000000000000000000000000000000000000000..d4422137f4f8d256a448bd55aeb4d65a3f703c6b GIT binary patch literal 239 zcmeAS@N?(olHy`uVBq!ia0vp^0zj<5!3HFyJAa%3QjEnx?oJHr&dIz4a@dl*-CY>| zgW!U_%O?XxI14-?iy0XBj({-ZRBb+KpdfpRr>`sf9Zq2ZKBg{vW;LKtzNd?0h{y4_ zlLGk;C~!D0RDb^L-E>2*0`F<53+=OX__wYSn0bRM`)o~==&T!=XB=jU{%+b(-`Fry zt3mw6T| zgW!U_%O?XxI14-?iy0XBj({-ZRBb+KpdfpRr>`sf9Zq2ZK0&@lryoF}1Wy;o5Rc<; zCm!T$FyL_Z-ap6wy0(%)VE^0H$gsG`tc)igl<%(nbkpR;htrXbYoz*^U;brFOrOON z_~xIDX4OxVy`Kwa&)fb$ZSN-`c~yo3=Ay^6cCIxDUn#~S;LvcNL7hQN(c<~fIZuIh OF?hQAxvX