mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-23 01:10:26 +01:00
crystal spider immune to ethereal crystal spike node.
This commit is contained in:
parent
d86f9253a7
commit
6ea38b5a16
@ -47,7 +47,7 @@ local spider_types = {
|
|||||||
|
|
||||||
{ nodes = {"ethereal:crystal_dirt", "ethereal:crystal_spike"},
|
{ nodes = {"ethereal:crystal_dirt", "ethereal:crystal_spike"},
|
||||||
skins = {"mobs_spider_crystal.png"},
|
skins = {"mobs_spider_crystal.png"},
|
||||||
docile = true,
|
docile = true, immune_to = {{"ethereal:crystal_spike", 0}},
|
||||||
drops = {
|
drops = {
|
||||||
{name = "farming:string", chance = 1, min = 0, max = 2},
|
{name = "farming:string", chance = 1, min = 0, max = 2},
|
||||||
{name = "ethereal:crystal_spike", chance = 15, min = 1, max = 2}}
|
{name = "ethereal:crystal_spike", chance = 15, min = 1, max = 2}}
|
||||||
@ -67,7 +67,7 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
hp_min = 10,
|
hp_min = 10,
|
||||||
hp_max = 30,
|
hp_max = 30,
|
||||||
armor = 200,
|
armor = 200,
|
||||||
collisionbox = {-0.8, -0.5, -0.8, 0.8, 0, 0.8},
|
collisionbox = {-0.7, -0.5, -0.7, 0.7, 0, 0.7},
|
||||||
visual_size = {x = 1, y = 1},
|
visual_size = {x = 1, y = 1},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_spider.b3d",
|
mesh = "mobs_spider.b3d",
|
||||||
@ -94,7 +94,7 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
water_damage = 5,
|
water_damage = 5,
|
||||||
lava_damage = 5,
|
lava_damage = 5,
|
||||||
light_damage = 0,
|
light_damage = 0,
|
||||||
node_damage = false, -- disable damage_per_second node damage
|
-- node_damage = false, -- disable damage_per_second node damage
|
||||||
animation = {
|
animation = {
|
||||||
speed_normal = 15, speed_run = 20,
|
speed_normal = 15, speed_run = 20,
|
||||||
stand_start = 0, stand_end = 0,
|
stand_start = 0, stand_end = 0,
|
||||||
@ -121,6 +121,8 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
|
|
||||||
if tmp.drops then self.drops = tmp.drops end
|
if tmp.drops then self.drops = tmp.drops end
|
||||||
|
|
||||||
|
if tmp.immune_to then self.immune_to = tmp.immune_to end
|
||||||
|
|
||||||
if tmp.shoot then
|
if tmp.shoot then
|
||||||
self.attack_type = "dogshoot"
|
self.attack_type = "dogshoot"
|
||||||
self.arrow = "mobs_monster:cobweb"
|
self.arrow = "mobs_monster:cobweb"
|
||||||
|
Loading…
Reference in New Issue
Block a user