summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua1
-rw-r--r--models/mobs_panda.b3dbin0 -> 102237 bytes
-rw-r--r--panda.lua77
-rw-r--r--readme.md6
-rw-r--r--sounds/mobs_panda.oggbin0 -> 9971 bytes
-rw-r--r--textures/mobs_panda.pngbin0 -> 1402 bytes
6 files changed, 83 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 69e6c73..0325b81 100644
--- a/init.lua
+++ b/init.lua
@@ -17,6 +17,7 @@ dofile(path .. "/bee.lua") -- KrupnoPavel
dofile(path .. "/bunny.lua") -- ExeterDad
dofile(path .. "/kitten.lua") -- Jordach/BFD
dofile(path .. "/penguin.lua") -- D00Med
+dofile(path .. "/panda.lua") -- AspireMint
dofile(path .. "/lucky_block.lua")
diff --git a/models/mobs_panda.b3d b/models/mobs_panda.b3d
new file mode 100644
index 0000000..660dc8a
--- /dev/null
+++ b/models/mobs_panda.b3d
Binary files differ
diff --git a/panda.lua b/panda.lua
new file mode 100644
index 0000000..7a0ce77
--- /dev/null
+++ b/panda.lua
@@ -0,0 +1,77 @@
+
+local S = mobs.intllib
+
+
+-- Panda by AspireMint (CC BY-SA 3.0)
+
+mobs:register_mob("mobs_animal:panda", {
+stepheight = 0.6,
+ type = "animal",
+ passive = false,
+ attack_type = "dogfight",
+ group_attack = true,
+ owner_loyal = true,
+ attack_npcs = false,
+ reach = 2,
+ damage = 3,
+ hp_min = 10,
+ hp_max = 24,
+ armor = 200,
+ collisionbox = {-0.4, -0.45, -0.4, 0.4, 0.45, 0.4},
+ visual = "mesh",
+ mesh = "mobs_panda.b3d",
+ textures = {
+ {"mobs_panda.png"},
+ },
+ makes_footstep_sound = true,
+ sounds = {
+ random = "mobs_panda",
+ attack = "mobs_panda",
+ },
+ walk_velocity = 1,
+ run_velocity = 2,
+ jump = false,
+ jump_height = 6,
+ follow = {"ethereal:bamboo"},
+ view_range = 8,
+ drops = {
+ {name = "mobs:meat_raw", chance = 1, min = 1, max = 3},
+ },
+ water_damage = 1,
+ lava_damage = 5,
+ light_damage = 0,
+ fear_height = 6,
+ animation = {
+ speed_normal = 15,
+ stand_start = 130,
+ stand_end = 270,
+ walk_start = 10,
+ walk_end = 70,
+ punch_start = 80,
+ punch_end = 270,
+ -- 0 = rest, 1 = hiding (covers eyes), 2 = surprised
+ },
+ on_rightclick = function(self, clicker)
+
+ if mobs:feed_tame(self, clicker, 10, true, true) then return end
+ if mobs:protect(self, clicker) then return end
+ if mobs:capture_mob(self, clicker, 0, 5, 50, false, nil) then return end
+ end,
+})
+
+if minetest.get_modpath("ethereal") then
+
+ mobs:spawn({
+ name = "mobs_animal:pumba",
+ nodes = {"ethereal:bamboo_dirt"},
+ neighbors = {"group:grass"},
+ min_light = 14,
+ interval = 60,
+ chance = 8000, -- 15000
+ min_height = 10,
+ max_height = 80,
+ day_toggle = true,
+ })
+end
+
+mobs:register_egg("mobs_animal:panda", S("Panda"), "wool_green.png", 1)
diff --git a/readme.md b/readme.md
index e8f434e..55b5a83 100644
--- a/readme.md
+++ b/readme.md
@@ -36,6 +36,10 @@ Warthogs unlike pigs defend themselves when hit and give 1-3 raw pork when kille
These little guys can be found in glacier biomes on top of snow and have the ability to swim if they fall into water.
---
-*Note: After breeding animals need to rest for 4 minutes, baby animals take 4 minutes to grow up and feeding them helps them grow quicker...*
+### Panda
+These monochrome cuties spawn in Ethereal's bamboo biome and can be tamed with bamboo stalks :) Remember they have claws though.
+
+---
+*Note: After breeding, animals need to rest for 4 minutes and baby animals take 4 minutes to grow up, also feeding them helps them grow quicker...*
#### Lucky Blocks: 14
diff --git a/sounds/mobs_panda.ogg b/sounds/mobs_panda.ogg
new file mode 100644
index 0000000..1c4c7d2
--- /dev/null
+++ b/sounds/mobs_panda.ogg
Binary files differ
diff --git a/textures/mobs_panda.png b/textures/mobs_panda.png
new file mode 100644
index 0000000..dbdc55c
--- /dev/null
+++ b/textures/mobs_panda.png
Binary files differ