From e78382b08cb102fdd6aa07ece0c4876056c972ed Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 20 Feb 2017 03:00:03 +0100 Subject: [PATCH] Tweak spawning of all mobs --- mods/ENTITIES/mobs_mc/blaze.lua | 2 +- mods/ENTITIES/mobs_mc/chicken.lua | 2 +- mods/ENTITIES/mobs_mc/cow.lua | 2 +- mods/ENTITIES/mobs_mc/creeper.lua | 2 +- mods/ENTITIES/mobs_mc/enderman.lua | 2 +- mods/ENTITIES/mobs_mc/horse.lua | 6 +++--- mods/ENTITIES/mobs_mc/pig.lua | 2 +- mods/ENTITIES/mobs_mc/sheep.lua | 2 +- mods/ENTITIES/mobs_mc/skeleton.lua | 2 +- mods/ENTITIES/mobs_mc/slimes.lua | 12 ++++++------ mods/ENTITIES/mobs_mc/villager.lua | 2 +- mods/ENTITIES/mobs_mc/wolf.lua | 2 +- mods/ENTITIES/mobs_mc/zombie.lua | 2 +- mods/ENTITIES/mobs_mc/zombiepig.lua | 2 +- 14 files changed, 21 insertions(+), 21 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/blaze.lua b/mods/ENTITIES/mobs_mc/blaze.lua index 83300d69d3..b449b21592 100644 --- a/mods/ENTITIES/mobs_mc/blaze.lua +++ b/mods/ENTITIES/mobs_mc/blaze.lua @@ -66,7 +66,7 @@ mobs:register_mob("mobs_mc:blaze", { fear_height = 120, }) -mobs:register_spawn("mobs_mc:blaze", {"mcl_core:lava_flowing", "mcl_nether:netherrack","air"}, 30, -1, 5000, 1, -2000) +mobs:register_spawn("mobs_mc:blaze", {"mcl_core:lava_flowing", "mcl_nether:netherrack","air"}, 30, -1, 5000, 1, -1000) -- Blaze fireball mobs:register_arrow("mobs_mc:blaze_fireball", { diff --git a/mods/ENTITIES/mobs_mc/chicken.lua b/mods/ENTITIES/mobs_mc/chicken.lua index 688ccde7d7..a9a2e1b4f0 100644 --- a/mods/ENTITIES/mobs_mc/chicken.lua +++ b/mods/ENTITIES/mobs_mc/chicken.lua @@ -119,7 +119,7 @@ mobs:register_mob("mobs_mc:chicken", { }) -mobs:register_spawn("mobs_mc:chicken", {"mcl_core:dirt_with_grass"}, 20, 8, 7000, 1, 31000) +mobs:register_spawn("mobs_mc:chicken", {"mcl_core:dirt_with_grass"}, 20, 9, 7000, 1, 31000) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/cow.lua b/mods/ENTITIES/mobs_mc/cow.lua index dbed66ce48..ddb37b505a 100644 --- a/mods/ENTITIES/mobs_mc/cow.lua +++ b/mods/ENTITIES/mobs_mc/cow.lua @@ -125,7 +125,7 @@ mobs:register_mob("mobs_mc:cow", { end, }) -mobs:register_spawn("mobs_mc:cow", {"mcl_core:dirt_with_grass"}, 20, 8, 7000, 1, 31000) +mobs:register_spawn("mobs_mc:cow", {"group:solid"}, 20, 9, 7000, 1, 31000) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/creeper.lua b/mods/ENTITIES/mobs_mc/creeper.lua index a5faa20026..7d83c1befe 100644 --- a/mods/ENTITIES/mobs_mc/creeper.lua +++ b/mods/ENTITIES/mobs_mc/creeper.lua @@ -64,7 +64,7 @@ mobs:register_mob("mobs_mc:creeper", { view_range = 16, attack_type = "explode", }) -mobs:register_spawn("mobs_mc:creeper", {"group:crumbly", "group:cracky", "group:choppy", "group:snappy"}, 7, -1, 5000, 4, 31000) +mobs:register_spawn("mobs_mc:creeper", {"group:solid"}, 7, -1, 5000, 4, 31000) diff --git a/mods/ENTITIES/mobs_mc/enderman.lua b/mods/ENTITIES/mobs_mc/enderman.lua index 1fbbf068aa..30fb1ab5f9 100644 --- a/mods/ENTITIES/mobs_mc/enderman.lua +++ b/mods/ENTITIES/mobs_mc/enderman.lua @@ -59,7 +59,7 @@ mobs:register_mob("mobs_mc:enderman", { replace_offset = -1, }) -mobs:register_spawn("mobs_mc:enderman", { "mcl_core:sand", "mcl_core:redsand"}, 5, -1, 5000, 4, 31000) +mobs:register_spawn("mobs_mc:enderman", { "group:solid"}, 7, -1, 5000, 4, 31000) diff --git a/mods/ENTITIES/mobs_mc/horse.lua b/mods/ENTITIES/mobs_mc/horse.lua index afcf3c09d4..beeef0a098 100644 --- a/mods/ENTITIES/mobs_mc/horse.lua +++ b/mods/ENTITIES/mobs_mc/horse.lua @@ -318,9 +318,9 @@ mobs:register_mob("mobs_mc:horse3", { end end, }) -mobs:register_spawn("mobs_mc:horse", {"mcl_core:dirt_with_grass", "mcl_core:dirt"}, 20, 12, 21000, 1, 12) -mobs:register_spawn("mobs_mc:horse2", {"mcl_core:dirt_with_grass", "mcl_core:dirt"}, 20, 12, 23000, 1, 31000) -mobs:register_spawn("mobs_mc:horse3", {"mcl_core:sand", "mcl_core:redsand"}, 20, 8, 17000, 1, 5) +mobs:register_spawn("mobs_mc:horse", {"mcl_core:dirt_with_grass", "mcl_core:dirt"}, 20, 9, 21000, 1, 12) +mobs:register_spawn("mobs_mc:horse2", {"mcl_core:dirt_with_grass", "mcl_core:dirt"}, 20, 9, 23000, 1, 31000) +mobs:register_spawn("mobs_mc:horse3", {"mcl_core:sand", "mcl_core:redsand"}, 20, 9, 17000, 1, 5) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/pig.lua b/mods/ENTITIES/mobs_mc/pig.lua index 813bc6ef54..c6bf18bf85 100644 --- a/mods/ENTITIES/mobs_mc/pig.lua +++ b/mods/ENTITIES/mobs_mc/pig.lua @@ -133,7 +133,7 @@ mobs:register_mob("mobs_mc:pig", { end, }) -mobs:register_spawn("mobs_mc:pig", {"mcl_core:dirt_with_grass"}, 20, 12, 5000, 1, 31000) +mobs:register_spawn("mobs_mc:pig", {"mcl_core:dirt_with_grass"}, 20, 9, 5000, 1, 31000) --api code to fix diff --git a/mods/ENTITIES/mobs_mc/sheep.lua b/mods/ENTITIES/mobs_mc/sheep.lua index dd1ea1b6b5..d39e1ac88b 100644 --- a/mods/ENTITIES/mobs_mc/sheep.lua +++ b/mods/ENTITIES/mobs_mc/sheep.lua @@ -124,7 +124,7 @@ print(item:get_name(), minetest.get_item_group(item:get_name(), "dye")) end end, }) -mobs:register_spawn("mobs_mc:sheep", {"mcl_core:dirt_with_grass"}, 20, 12, 5000, 2, 31000) +mobs:register_spawn("mobs_mc:sheep", {"mcl_core:dirt_with_grass"}, 20, 9, 5000, 2, 31000) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/skeleton.lua b/mods/ENTITIES/mobs_mc/skeleton.lua index 0a817664f0..8b396fb928 100644 --- a/mods/ENTITIES/mobs_mc/skeleton.lua +++ b/mods/ENTITIES/mobs_mc/skeleton.lua @@ -68,7 +68,7 @@ mobs:register_mob("mobs_mc:skeleton", { dogshoot_switch = 1, dogshoot_count_max =3, }) -mobs:register_spawn("mobs_mc:skeleton", {"group:crumbly", "group:cracky", "group:choppy", "group:snappy"}, 7, -1, 5000, 4, 31000) +mobs:register_spawn("mobs_mc:skeleton", {"group:solid"}, 7, -1, 5000, 4, 31000) mobs:register_mob("mobs_mc:skeleton2", { diff --git a/mods/ENTITIES/mobs_mc/slimes.lua b/mods/ENTITIES/mobs_mc/slimes.lua index 81ade78ee0..2b67b75af7 100644 --- a/mods/ENTITIES/mobs_mc/slimes.lua +++ b/mods/ENTITIES/mobs_mc/slimes.lua @@ -182,9 +182,9 @@ mobs:register_mob("mobs_mc:greenbig", { end end, }) -mobs:register_spawn("mobs_mc:greensmall", {"mcl_core:water_flowing", "mcl_core:mossycobble"}, 7, -1, 5000, 4, 31000) -mobs:register_spawn("mobs_mc:greenmedium", {"mcl_core:water_flowing", "mcl_core:mossycobble"}, 7, -1, 5000, 4, 31000) -mobs:register_spawn("mobs_mc:greenbig", {"mcl_core:water_flowing", "mcl_core:mossycobble"}, 7, -1, 5000, 4, 31000) +mobs:register_spawn("mobs_mc:greensmall", {"mcl_core:water_flowing", "group:solid"}, 15, 0, 5000, 4, -12) +mobs:register_spawn("mobs_mc:greenmedium", {"mcl_core:water_flowing", "group:solid"}, 15, 0, 5000, 4, -12) +mobs:register_spawn("mobs_mc:greenbig", {"mcl_core:water_flowing", "group:solid"}, 15, 0, 5000, 4, -12) @@ -270,7 +270,7 @@ mobs:register_mob("mobs_mc:lavabig", { armor = 100, drops = { {name = "mcl_mobitems:magma_cream", - chance = 1, + chance = 4, min = 0, max = 1,}, }, @@ -307,8 +307,8 @@ mobs:register_mob("mobs_mc:lavabig", { end }) -mobs:register_spawn("mobs_mc:lavasmall", {"nether:rack", "mcl_core:lava"}, 7, -1, 5000, 4, 31000) -mobs:register_spawn("mobs_mc:lavabig", {"nether:rack", "mcl_core:lava"}, 7, -1, 5000, 4, 31000) +mobs:register_spawn("mobs_mc:lavasmall", {"mcl_nether:netherrack", "mcl_nether:nether_brick"}, 15, 0, 5000, 4, -1000) +mobs:register_spawn("mobs_mc:lavabig", {"mcl_nether:netherrack", "mcl_nether:nether_brick"}, 15, 0, 5000, 4, -1000) -- compatibility mobs:alias_mob("mobs:lavasmall", "mobs_mc:lavasmall") diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index f2291c6af6..b5ea62dc6b 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -168,7 +168,7 @@ mobs:register_mob("mobs_mc:villager", { ]] }) -mobs:register_spawn("mobs_mc:villager", {"mcl_core:gravel"}, 20, 8, 500, 2, 31000) +mobs:register_spawn("mobs_mc:villager", {"mcl_core:gravel"}, 20, 0, 500, 2, 31000) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/wolf.lua b/mods/ENTITIES/mobs_mc/wolf.lua index 0aac2e6f05..fbc7c97daf 100644 --- a/mods/ENTITIES/mobs_mc/wolf.lua +++ b/mods/ENTITIES/mobs_mc/wolf.lua @@ -169,7 +169,7 @@ mobs:register_mob("mobs_mc:wolf", { step = 0.5, blood_texture = "mobs_blood.png", }) -mobs:register_spawn("mobs_mc:wolf", {"mcl_core:dirt_with_grass","mcl_core:dirt","mcl_core:snow", "mcl_core:snowblock"}, 20, 0, 19000, 1, 31000) +mobs:register_spawn("mobs_mc:wolf", {"mcl_core:dirt_with_grass", "mcl_core:dirt", "mcl_core:coarse_dirt", "mcl_core:snow", "mcl_core:snowblock", "mcl_core:podzol"}, 20, 0, 19000, 1, 31000) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/zombie.lua b/mods/ENTITIES/mobs_mc/zombie.lua index 97cd7c907a..35b4bb49e4 100644 --- a/mods/ENTITIES/mobs_mc/zombie.lua +++ b/mods/ENTITIES/mobs_mc/zombie.lua @@ -83,7 +83,7 @@ mobs:register_mob("mobs_mc:zombie", { view_range = 16, attack_type = "dogfight", }) -mobs:register_spawn("mobs_mc:zombie", {"group:crumbly", "group:cracky", "group:choppy", "group:snappy"}, 7, -1, 5000, 4, 31000) +mobs:register_spawn("mobs_mc:zombie", {"group:solid"}, 7, -1, 5000, 4, 31000) -- compatibility diff --git a/mods/ENTITIES/mobs_mc/zombiepig.lua b/mods/ENTITIES/mobs_mc/zombiepig.lua index d710e68e73..e3cedcc4e2 100644 --- a/mods/ENTITIES/mobs_mc/zombiepig.lua +++ b/mods/ENTITIES/mobs_mc/zombiepig.lua @@ -82,7 +82,7 @@ mobs:register_mob("mobs_mc:pigman", { view_range = 16, attack_type = "dogfight", }) -mobs:register_spawn("mobs_mc:pigman", {"mcl_nether:netherrack"}, 17, -1, 5000, 3, -2000) +mobs:register_spawn("mobs_mc:pigman", {"mcl_nether:netherrack", "mcl_nether:nether_brick"}, 17, -1, 5000, 3, -1000) mobs:register_spawn("mobs_mc:pigman", {"mcl_nether:portal"}, 15, -1, 500, 4, 31000) mobs:register_spawn("mobs_mc:pigman", {"mcl_core:obsidian"}, 17, -1, 1900, 1, 31000)