1
0
mirror of https://codeberg.org/tenplus1/mobs_monster.git synced 2024-12-22 17:00:26 +01:00

snow spider and tarantula is docile by day

This commit is contained in:
TenPlus1 2018-07-02 08:33:23 +01:00
parent cd6b3aadc3
commit aa0124a5b3

View File

@ -63,11 +63,13 @@ mobs:register_mob("mobs_monster:spider2", {
{"default:snow", "default:snowblock", "default:dirt_with_snow"}) then {"default:snow", "default:snowblock", "default:dirt_with_snow"}) then
self.base_texture = {"mobs_spider_snowy.png"} self.base_texture = {"mobs_spider_snowy.png"}
self.object:set_properties({textures = self.base_texture}) self.object:set_properties({textures = self.base_texture})
self.docile_by_day = true
-- tarantula -- tarantula
elseif minetest.find_node_near(pos, 1, elseif minetest.find_node_near(pos, 1,
{"default:dirt_with_rainforest_litter", "default:jungletree"}) then {"default:dirt_with_rainforest_litter", "default:jungletree"}) then
self.base_texture = {"mobs_spider_orange.png"} self.base_texture = {"mobs_spider_orange.png"}
self.object:set_properties({textures = self.base_texture}) self.object:set_properties({textures = self.base_texture})
self.docile_by_day = true
-- grey spider -- grey spider
elseif minetest.find_node_near(pos, 1, elseif minetest.find_node_near(pos, 1,
{"default:stone", "default:gravel"}) then {"default:stone", "default:gravel"}) then