From 095d8753e0d6b3a35a1d3f4af45c9ebb1e6a3bd2 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 2 Mar 2021 18:04:01 +0000 Subject: [PATCH] add Tree Creeper --- readme.md | 2 +- textures/mobs_tree_monster6.png | Bin 0 -> 3102 bytes tree_monster.lua | 37 +++++++++++++++++++++++++++++--- 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100755 textures/mobs_tree_monster6.png diff --git a/readme.md b/readme.md index d00305a..cd03fcb 100644 --- a/readme.md +++ b/readme.md @@ -35,7 +35,7 @@ Stone Monster Tree Monster -- Found atop tree's at night time they drop down and look for food in the form of players and animals. Can drop saplings and sometimes an apple or three. +- Found atop tree's at night time they drop down and look for food in the form of players and animals. Can drop saplings and sometimes an apple or three depending on type. Also note that green tree creepers exist and sometimes go boom. Land Guard diff --git a/textures/mobs_tree_monster6.png b/textures/mobs_tree_monster6.png new file mode 100755 index 0000000000000000000000000000000000000000..6e884a61a9c5f122a2a0a4ac766ca01e0196c23f GIT binary patch literal 3102 zcmV+(4B_*MP)F=H($XCWbBWP{m(z@+)03*!q`B3z)!5TlX6B3l0004W zQchC2UUQ=-G4%4fc(2p{!)3q4|FvNB^)3jqZ@pDl4rh#N zURpdDRTiqBA8kzFq0wX?E}e1VjagSwOL@JLJq=^MC$H~+`)DBm{H(J=T$JfO+|A|X zQY{Ms#H!6g_rnCMrm3-wT~;7q-Dy2SY;z1`%y`0?a6wk2d$Yx$?0oQ;mFJg=WAWtL z>*aD;IOk*40syfVqFMo9?YhF8M-*d>La;PP*!qJ5_r2dH@6&yHhzFhbG^@e8igWgo zl-cZ^TUJ0CGq;@6&xa1dU<_b1$KBQrvIXGq07E3H!!a+GvzMdoRTs_ z%D6RHOUxR)hu5`UV}o?)x-Cz(xYBC2^m&}S#%Q}NUAKfVZTXYVdU>4o@mdr@Xabm&ptT?=`(sjOYlwn34y&35-)YWuJ0U6B zx@|jSmRZkOM_S71G;Ql+4*85@orbuC`6Vec5u;O0W9%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qf+A_k(xMX7xWQsu!aH>P`HI<=!Zb&xnMu+0==sc z8H&WXd=NY2bd3%iMzqO$0q!T><0$bf_ZbmU0kszBNZ(TpxfGC2tqW+!8f+mDmepD<-BsUW1+h@Q0aa};37~;MWw2M* z_BRGp?_VK9Z>eTcL_m7Cp4F!IVKo#1i!6fEgR-bHK&NYWy>bOTyJcP7sy5a4TMYJk z|2@@=@xwx|J5hJ-?L&&N8390E9+g8arDobrThdEQ^*xkydcVLkTS0|tRfjP<)VOfnImKcfava@0pOdmgKzRe!yse4;F2bfqvZJ)0N{3} z%R;hJGnhv02C$r!2nmJ6um~)A(2?Ok7iP&EOUtHY(QxXq| zeF-4{1^_6_HUK14UgjjJEUkcl2LMf2PO+uk1|Fi=g3c5e^Cf_q0CGZrhmt-#0GRoL z*kK6-KvRc@iUg1+06hKzKyILH;8vYu3CPl%_(dzg0}$dH0MLdSdjbJq3&7+7NBV8P z2Eb&^AVw)m5eic?@GK{Q`rm_0`wb&T<$PN~@;(7z5eWYm03dFXB3gsToEQeZrZNeb z*oeNcC!^q!CPkS`wgZ54C@pHl`WpbyW)eA0O2jtxHd`Hr%NGD>^EIqaT&4|^Be;kL zQ0nghV27s(7nDUslDahYqO7_6&I+iWplKsvOJ3tYk_V1M86(YCqymoLtLmInB+68( s?iKdGrzveXN&gX6su~l}20(ZJ0geILl<+-=RsaA107*qoM6N<$g6<5x&;S4c literal 0 HcmV?d00001 diff --git a/tree_monster.lua b/tree_monster.lua index 99b3eaf..4276f02 100644 --- a/tree_monster.lua +++ b/tree_monster.lua @@ -31,7 +31,17 @@ local tree_types = { {name = "ethereal:yellow_tree_sapling", chance = 2, min = 0, max = 2}, {name = "ethereal:golden_apple", chance = 3, min = 0, max = 2}, } - } + }, + + { nodes = {"default:acacia_bush_leaves"}, + skins = {"mobs_tree_monster6.png"}, + drops = { + {name = "tnt:gunpowder", chance = 1, min = 0, max = 2}, + {name = "default:iron_lump", chance = 5, min = 0, max = 2}, + {name = "default:coal_lump", chance = 3, min = 0, max = 3} + }, + explode = true + }, } @@ -45,8 +55,8 @@ mobs:register_mob("mobs_monster:tree_monster", { --specific_attack = {"player", "mobs_animal:chicken"}, reach = 2, damage = 2, - hp_min = 7, - hp_max = 33, + hp_min = 20, + hp_max = 40, armor = 100, collisionbox = {-0.4, -1, -0.4, 0.4, 0.8, 0.4}, visual = "mesh", @@ -108,6 +118,8 @@ mobs:register_mob("mobs_monster:tree_monster", { tmp = tree_types[n] + if tmp.explode and math.random(2) == 1 then return true end + if minetest.find_node_near(pos, 1, tmp.nodes) then self.base_texture = tmp.skins @@ -117,6 +129,25 @@ mobs:register_mob("mobs_monster:tree_monster", { self.drops = tmp.drops end + if tmp.explode then + self.attack_type = "explode" + self.explosion_radius = 3 + self.explosion_timer = 3 + self.damage = 21 + self.reach = 3 + self.fear_height = 4 + self.water_damage = 2 + self.lava_damage = 15 + self.light_damage = 0 + self.makes_footstep_sound = false + self.runaway_from = {"mobs_animal:kitten"} + self.sounds = { + attack = "tnt_ignite", + explode = "tnt_explode", + fuse = "tnt_ignite" + } + end + return true end end