mirror of
https://codeberg.org/tenplus1/mobs_monster.git
synced 2024-12-22 17:00:26 +01:00
make cave spider tiny
This commit is contained in:
parent
22308b4c94
commit
57f40cf4b1
10
spider.lua
10
spider.lua
@ -30,7 +30,8 @@ local spider_types = {
|
|||||||
{ nodes = {"default:stone", "default:gravel"},
|
{ nodes = {"default:stone", "default:gravel"},
|
||||||
skins = {"mobs_spider_grey.png"},
|
skins = {"mobs_spider_grey.png"},
|
||||||
docile = nil,
|
docile = nil,
|
||||||
drops = nil
|
drops = nil,
|
||||||
|
small = true
|
||||||
},
|
},
|
||||||
|
|
||||||
{ nodes = {"default:mese", "default:stone_with_mese"},
|
{ nodes = {"default:mese", "default:stone_with_mese"},
|
||||||
@ -134,6 +135,13 @@ mobs:register_mob("mobs_monster:spider", {
|
|||||||
self.shoot_offset = 2
|
self.shoot_offset = 2
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if tmp.small then
|
||||||
|
self.object:set_properties({
|
||||||
|
collisionbox = {-0.2, -0.2, -0.2, 0.2, 0, 0.2},
|
||||||
|
visual_size = {x = 0.25, y = 0.25}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user