Compare commits

...

3 Commits

Author SHA1 Message Date
MysticTempest 3dcf268df2 Update node_specific spawns for mobs, and fix llama biome spawn. 2022-07-13 12:29:33 -05:00
MysticTempest 7e36288013 Remove some mobs from Mushroom Islands, and Ice Plains. 2022-07-10 23:37:00 -05:00
MysticTempest b7abaad98f Fix skeleton arrows. 2022-07-09 14:25:17 -05:00
17 changed files with 29 additions and 55 deletions

View File

@ -2865,7 +2865,7 @@ local do_states = function(self, dtime)
if self.shoot_interval if self.shoot_interval
and self.timer > self.shoot_interval and self.timer > self.shoot_interval
and not minetest.raycast(p, self.attack:get_pos(), false, false):next() and minetest.raycast(p, self.attack:get_pos(), false, false):next()
and random(1, 100) <= 60 then and random(1, 100) <= 60 then
self.timer = 0 self.timer = 0

View File

@ -109,10 +109,9 @@ mcl_mobs:register_mob("mobs_mc:chicken", {
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:chicken", "mobs_mc:chicken",
"overworld", "overworld",
"ground", "mcl_core:dirt_with_grass",
{ {
"flat", "flat",
"IcePlainsSpikes",
"ColdTaiga", "ColdTaiga",
"ColdTaiga_beach", "ColdTaiga_beach",
"ColdTaiga_beach_water", "ColdTaiga_beach_water",

View File

@ -148,10 +148,9 @@ mcl_mobs:register_mob("mobs_mc:mooshroom", mooshroom_def)
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:cow", "mobs_mc:cow",
"overworld", "overworld",
"ground", "mcl_core:dirt_with_grass",
{ {
"flat", "flat",
"IcePlainsSpikes",
"ColdTaiga", "ColdTaiga",
"ColdTaiga_beach", "ColdTaiga_beach",
"ColdTaiga_beach_water", "ColdTaiga_beach_water",
@ -200,7 +199,7 @@ mcl_vars.mg_overworld_max)
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:mooshroom", "mobs_mc:mooshroom",
"overworld", "overworld",
"ground", "mcl_core:mycelium",
{ {
"MushroomIslandShore", "MushroomIslandShore",
"MushroomIsland" "MushroomIsland"

View File

@ -274,7 +274,6 @@ mcl_mobs:spawn_specific(
"Plains", "Plains",
"Desert", "Desert",
"ColdTaiga", "ColdTaiga",
"MushroomIsland",
"IcePlainsSpikes", "IcePlainsSpikes",
"SunflowerPlains", "SunflowerPlains",
"IcePlains", "IcePlains",
@ -301,7 +300,6 @@ mcl_mobs:spawn_specific(
"ExtremeHills_beach", "ExtremeHills_beach",
"ColdTaiga_beach", "ColdTaiga_beach",
"Swampland_shore", "Swampland_shore",
"MushroomIslandShore",
"JungleM_shore", "JungleM_shore",
"Jungle_shore", "Jungle_shore",
"MesaPlateauFM_sandlevel", "MesaPlateauFM_sandlevel",
@ -340,7 +338,6 @@ mcl_mobs:spawn_specific(
"Forest_deep_ocean", "Forest_deep_ocean",
"JungleM_deep_ocean", "JungleM_deep_ocean",
"FlowerForest_deep_ocean", "FlowerForest_deep_ocean",
"MushroomIsland_ocean",
"MegaTaiga_ocean", "MegaTaiga_ocean",
"StoneBeach_deep_ocean", "StoneBeach_deep_ocean",
"IcePlainsSpikes_deep_ocean", "IcePlainsSpikes_deep_ocean",
@ -350,7 +347,6 @@ mcl_mobs:spawn_specific(
"MesaBryce_deep_ocean", "MesaBryce_deep_ocean",
"ExtremeHills+_deep_ocean", "ExtremeHills+_deep_ocean",
"ExtremeHills_ocean", "ExtremeHills_ocean",
"MushroomIsland_deep_ocean",
"Forest_ocean", "Forest_ocean",
"MegaTaiga_deep_ocean", "MegaTaiga_deep_ocean",
"JungleEdge_ocean", "JungleEdge_ocean",
@ -376,7 +372,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",

View File

@ -627,7 +627,6 @@ mcl_mobs:spawn_specific(
"Plains", "Plains",
"Desert", "Desert",
"ColdTaiga", "ColdTaiga",
"MushroomIsland",
"IcePlainsSpikes", "IcePlainsSpikes",
"SunflowerPlains", "SunflowerPlains",
"IcePlains", "IcePlains",
@ -654,7 +653,6 @@ mcl_mobs:spawn_specific(
"ExtremeHills_beach", "ExtremeHills_beach",
"ColdTaiga_beach", "ColdTaiga_beach",
"Swampland_shore", "Swampland_shore",
"MushroomIslandShore",
"JungleM_shore", "JungleM_shore",
"Jungle_shore", "Jungle_shore",
"MesaPlateauFM_sandlevel", "MesaPlateauFM_sandlevel",
@ -693,7 +691,6 @@ mcl_mobs:spawn_specific(
"Forest_deep_ocean", "Forest_deep_ocean",
"JungleM_deep_ocean", "JungleM_deep_ocean",
"FlowerForest_deep_ocean", "FlowerForest_deep_ocean",
"MushroomIsland_ocean",
"MegaTaiga_ocean", "MegaTaiga_ocean",
"StoneBeach_deep_ocean", "StoneBeach_deep_ocean",
"IcePlainsSpikes_deep_ocean", "IcePlainsSpikes_deep_ocean",
@ -703,7 +700,6 @@ mcl_mobs:spawn_specific(
"MesaBryce_deep_ocean", "MesaBryce_deep_ocean",
"ExtremeHills+_deep_ocean", "ExtremeHills+_deep_ocean",
"ExtremeHills_ocean", "ExtremeHills_ocean",
"MushroomIsland_deep_ocean",
"Forest_ocean", "Forest_ocean",
"MegaTaiga_deep_ocean", "MegaTaiga_deep_ocean",
"JungleEdge_ocean", "JungleEdge_ocean",
@ -729,7 +725,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",

View File

@ -215,7 +215,7 @@ mcl_mobs:register_mob("mobs_mc:llama", {
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:llama", "mobs_mc:llama",
"overworld", "overworld",
"ground", "mcl_core:dirt_with_grass",
{ {
"Mesa", "Mesa",
"MesaPlateauFM_grasstop", "MesaPlateauFM_grasstop",
@ -223,12 +223,11 @@ mcl_mobs:spawn_specific(
"MesaPlateauFM", "MesaPlateauFM",
"MesaPlateauF_grasstop", "MesaPlateauF_grasstop",
"MesaBryce", "MesaBryce",
"Jungle", "ExtremeHills",
"Jungle_shore", "ExtremeHills_beach",
"JungleM", "ExtremeHillsM",
"JungleM_shore", "ExtremeHills+",
"JungleEdge", "ExtremeHills+_snowtop",
"JungleEdgeM",
}, },
0, 0,
minetest.LIGHT_MAX+1, minetest.LIGHT_MAX+1,

View File

@ -157,7 +157,7 @@ local base_spawn_chance = 5000
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:ocelot", "mobs_mc:ocelot",
"overworld", "overworld",
"ground", "mcl_core:dirt_with_grass",
{ {
"Jungle", "Jungle",
"JungleEdgeM", "JungleEdgeM",

View File

@ -171,7 +171,7 @@ mcl_mobs:register_mob("mobs_mc:parrot", {
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:parrot", "mobs_mc:parrot",
"overworld", "overworld",
"ground", {"mcl_core:dirt_with_grass", "group:leaves", "group:tree"},
{ {
"Jungle", "Jungle",
"JungleEdgeM", "JungleEdgeM",

View File

@ -191,10 +191,9 @@ mcl_mobs:register_mob("mobs_mc:pig", {
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:pig", "mobs_mc:pig",
"overworld", "overworld",
"ground", "mcl_core:dirt_with_grass",
{ {
"flat", "flat",
"IcePlainsSpikes",
"ColdTaiga", "ColdTaiga",
"ColdTaiga_beach", "ColdTaiga_beach",
"ColdTaiga_beach_water", "ColdTaiga_beach_water",

View File

@ -71,7 +71,7 @@ mcl_mobs:register_mob("mobs_mc:polar_bear", {
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:polar_bear", "mobs_mc:polar_bear",
"overworld", "overworld",
"ground", {"mcl_core:dirt_with_grass","group:ice"},
{ {
"ColdTaiga", "ColdTaiga",
"IcePlainsSpikes", "IcePlainsSpikes",

View File

@ -127,7 +127,7 @@ mcl_mobs:register_mob("mobs_mc:killer_bunny", killer_bunny)
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:rabbit", "mobs_mc:rabbit",
"overworld", "overworld",
"ground", {"mcl_core:dirt_with_grass","group:sand","mcl_core:snow_block"},
{ {
"Desert", "Desert",
"FlowerForest", "FlowerForest",

View File

@ -307,10 +307,9 @@ mcl_mobs:register_mob("mobs_mc:sheep", {
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:sheep", "mobs_mc:sheep",
"overworld", "overworld",
"ground", "mcl_core:dirt_with_grass",
{ {
"flat", "flat",
"IcePlainsSpikes",
"ColdTaiga", "ColdTaiga",
"ColdTaiga_beach", "ColdTaiga_beach",
"ColdTaiga_beach_water", "ColdTaiga_beach_water",
@ -321,7 +320,6 @@ mcl_mobs:spawn_specific(
"ExtremeHillsM", "ExtremeHillsM",
"ExtremeHills+", "ExtremeHills+",
"ExtremeHills+_snowtop", "ExtremeHills+_snowtop",
"StoneBeach",
"Plains", "Plains",
"Plains_beach", "Plains_beach",
"SunflowerPlains", "SunflowerPlains",

View File

@ -90,9 +90,10 @@ local skeleton = {
arrow = "mcl_bows:arrow_entity", arrow = "mcl_bows:arrow_entity",
shoot_arrow = function(self, pos, dir) shoot_arrow = function(self, pos, dir)
if mod_bows then if mod_bows then
-- 2-4 damage per arrow -- 1-4 damage per arrow
local dmg = math.max(4, math.random(2, 8)) local dmg = math.random(1, 4)
mcl_bows.shoot_arrow("mcl_bows:arrow", pos, dir, self.object:get_yaw(), self.object, nil, dmg) local power = 26
mcl_bows.shoot_arrow("mcl_bows:arrow", pos, dir, self.object:get_yaw(), self.object, power, dmg)
end end
end, end,
shoot_interval = 2, shoot_interval = 2,
@ -162,7 +163,6 @@ mcl_mobs:spawn_specific(
"Plains", "Plains",
"Desert", "Desert",
"ColdTaiga", "ColdTaiga",
"MushroomIsland",
"IcePlainsSpikes", "IcePlainsSpikes",
"SunflowerPlains", "SunflowerPlains",
"IcePlains", "IcePlains",
@ -189,7 +189,6 @@ mcl_mobs:spawn_specific(
"ExtremeHills_beach", "ExtremeHills_beach",
"ColdTaiga_beach", "ColdTaiga_beach",
"Swampland_shore", "Swampland_shore",
"MushroomIslandShore",
"JungleM_shore", "JungleM_shore",
"Jungle_shore", "Jungle_shore",
"MesaPlateauFM_sandlevel", "MesaPlateauFM_sandlevel",
@ -228,7 +227,6 @@ mcl_mobs:spawn_specific(
"Forest_deep_ocean", "Forest_deep_ocean",
"JungleM_deep_ocean", "JungleM_deep_ocean",
"FlowerForest_deep_ocean", "FlowerForest_deep_ocean",
"MushroomIsland_ocean",
"MegaTaiga_ocean", "MegaTaiga_ocean",
"StoneBeach_deep_ocean", "StoneBeach_deep_ocean",
"IcePlainsSpikes_deep_ocean", "IcePlainsSpikes_deep_ocean",
@ -238,7 +236,6 @@ mcl_mobs:spawn_specific(
"MesaBryce_deep_ocean", "MesaBryce_deep_ocean",
"ExtremeHills+_deep_ocean", "ExtremeHills+_deep_ocean",
"ExtremeHills_ocean", "ExtremeHills_ocean",
"MushroomIsland_deep_ocean",
"Forest_ocean", "Forest_ocean",
"MegaTaiga_deep_ocean", "MegaTaiga_deep_ocean",
"JungleEdge_ocean", "JungleEdge_ocean",
@ -264,7 +261,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",

View File

@ -169,7 +169,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",
@ -213,7 +212,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",
@ -257,7 +255,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",

View File

@ -109,7 +109,6 @@ mcl_mobs:spawn_specific(
"Plains", "Plains",
"Desert", "Desert",
"ColdTaiga", "ColdTaiga",
"MushroomIsland",
"IcePlainsSpikes", "IcePlainsSpikes",
"SunflowerPlains", "SunflowerPlains",
"IcePlains", "IcePlains",
@ -136,7 +135,6 @@ mcl_mobs:spawn_specific(
"ExtremeHills_beach", "ExtremeHills_beach",
"ColdTaiga_beach", "ColdTaiga_beach",
"Swampland_shore", "Swampland_shore",
"MushroomIslandShore",
"JungleM_shore", "JungleM_shore",
"Jungle_shore", "Jungle_shore",
"MesaPlateauFM_sandlevel", "MesaPlateauFM_sandlevel",
@ -175,7 +173,6 @@ mcl_mobs:spawn_specific(
"Forest_deep_ocean", "Forest_deep_ocean",
"JungleM_deep_ocean", "JungleM_deep_ocean",
"FlowerForest_deep_ocean", "FlowerForest_deep_ocean",
"MushroomIsland_ocean",
"MegaTaiga_ocean", "MegaTaiga_ocean",
"StoneBeach_deep_ocean", "StoneBeach_deep_ocean",
"IcePlainsSpikes_deep_ocean", "IcePlainsSpikes_deep_ocean",
@ -185,7 +182,6 @@ mcl_mobs:spawn_specific(
"MesaBryce_deep_ocean", "MesaBryce_deep_ocean",
"ExtremeHills+_deep_ocean", "ExtremeHills+_deep_ocean",
"ExtremeHills_ocean", "ExtremeHills_ocean",
"MushroomIsland_deep_ocean",
"Forest_ocean", "Forest_ocean",
"MegaTaiga_deep_ocean", "MegaTaiga_deep_ocean",
"JungleEdge_ocean", "JungleEdge_ocean",
@ -211,7 +207,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",

View File

@ -236,7 +236,15 @@ mcl_mobs:register_mob("mobs_mc:dog", dog)
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(
"mobs_mc:wolf", "mobs_mc:wolf",
"overworld", "overworld",
"ground", {
"mcl_core:dirt_with_grass",
"mcl_core:dirt_with_grass_snow",
"mcl_core:podzol",
"mcl_core:podzol_snow",
"mcl_core:dirt",
"mcl_core:coarse_dirt",
"mcl_core:snow_block"
},
{ {
"Taiga", "Taiga",
"MegaSpruceTaiga", "MegaSpruceTaiga",

View File

@ -162,7 +162,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",
@ -198,7 +197,6 @@ mcl_mobs:spawn_specific(
"Forest", "Forest",
"Plains", "Plains",
"ColdTaiga", "ColdTaiga",
"MushroomIsland",
"IcePlainsSpikes", "IcePlainsSpikes",
"SunflowerPlains", "SunflowerPlains",
"IcePlains", "IcePlains",
@ -225,7 +223,6 @@ mcl_mobs:spawn_specific(
"ExtremeHills_beach", "ExtremeHills_beach",
"ColdTaiga_beach", "ColdTaiga_beach",
"Swampland_shore", "Swampland_shore",
"MushroomIslandShore",
"JungleM_shore", "JungleM_shore",
"Jungle_shore", "Jungle_shore",
"MesaPlateauFM_sandlevel", "MesaPlateauFM_sandlevel",
@ -254,7 +251,6 @@ mcl_mobs:spawn_specific(
"RoofedForest_underground", "RoofedForest_underground",
"Jungle_underground", "Jungle_underground",
"Swampland_underground", "Swampland_underground",
"MushroomIsland_underground",
"BirchForest_underground", "BirchForest_underground",
"Plains_underground", "Plains_underground",
"MesaPlateauF_underground", "MesaPlateauF_underground",
@ -290,7 +286,6 @@ mcl_mobs:spawn_specific(
"Forest", "Forest",
"Plains", "Plains",
"ColdTaiga", "ColdTaiga",
"MushroomIsland",
"IcePlainsSpikes", "IcePlainsSpikes",
"SunflowerPlains", "SunflowerPlains",
"IcePlains", "IcePlains",
@ -317,7 +312,6 @@ mcl_mobs:spawn_specific(
"ExtremeHills_beach", "ExtremeHills_beach",
"ColdTaiga_beach", "ColdTaiga_beach",
"Swampland_shore", "Swampland_shore",
"MushroomIslandShore",
"JungleM_shore", "JungleM_shore",
"Jungle_shore", "Jungle_shore",
"MesaPlateauFM_sandlevel", "MesaPlateauFM_sandlevel",