2017-07-05 04:16:25 +03:00
|
|
|
mobs_mc = {}
|
|
|
|
|
|
|
|
mobs_mc.override = {}
|
|
|
|
|
|
|
|
mobs_mc.override.items = {
|
|
|
|
blaze_rod = "mcl_mobitems:blaze_rod",
|
|
|
|
blaze_powder = "mcl_mobitems:blaze_powder",
|
|
|
|
chicken_raw = "mcl_mobitems:chicken",
|
|
|
|
chicken_cooked = "mcl_mobitems:cooked_chicken",
|
|
|
|
feather = "mcl_mobitems:feather",
|
|
|
|
beef_raw = "mcl_mobitems:beef",
|
|
|
|
beef_cooked = "mcl_mobitems:cooked_beef",
|
|
|
|
bowl = "mcl_core:bowl",
|
|
|
|
mushroom_stew = "mcl_mushrooms:mushroom_stew",
|
|
|
|
milk = "mcl_mobitems:milk_bucket",
|
|
|
|
dragon_egg = "mcl_end:dragon_egg",
|
|
|
|
egg = "mcl_throwing:egg",
|
|
|
|
ender_eye = "mcl_mobitems:ender_eye",
|
|
|
|
ghast_tear = "mcl_mobitems:ghast_tear",
|
|
|
|
saddle = "mcl_mobitems:saddle",
|
|
|
|
porkchop_raw = "mcl_mobitems:porkchop",
|
|
|
|
porkchop_cooked = "mcl_mobitems:cooked_porkchop",
|
|
|
|
carrot_on_a_stick = "mcl_mobitems:carrot_on_a_stick",
|
|
|
|
rabbit_raw = "mcl_mobitems:rabbit",
|
|
|
|
rabbit_cooked = "mcl_mobitems:cooked_rabbit",
|
|
|
|
rabbit_hide = "mcl_mobitems:rabbit_hide",
|
|
|
|
mutton_raw = "mcl_mobitems:mutton",
|
|
|
|
mutton_cooked = "mcl_mobitems:cooked_mutton",
|
|
|
|
shulker_shell = "mcl_mobitems:shulker_shell",
|
|
|
|
magma_cream = "mcl_mobitems:magma_cream",
|
|
|
|
spider_eye = "mcl_mobitems:spider_eye",
|
|
|
|
rotten_flesh = "mcl_mobitems:rotten_flesh",
|
|
|
|
snowball = "mcl_throwing:snowball",
|
|
|
|
top_snow = "mcl_core:snow",
|
2017-07-05 20:13:00 +03:00
|
|
|
snow_block = "mcl_core:snowblock",
|
2018-05-08 00:10:49 +03:00
|
|
|
arrow = "mcl_bows:arrow",
|
|
|
|
bow = "mcl_bows:bow",
|
2017-07-05 20:13:00 +03:00
|
|
|
head_zombie = "mcl_heads:zombie",
|
|
|
|
head_creeper = "mcl_heads:creeper",
|
|
|
|
head_skeleton = "mcl_heads:skeleton",
|
|
|
|
head_wither_skeleton = "mcl_heads:wither_skeleton",
|
2017-07-05 04:16:25 +03:00
|
|
|
|
|
|
|
leather = "mcl_mobitems:leather",
|
|
|
|
shears = "mcl_tools:shears",
|
|
|
|
|
|
|
|
mushroom_red = "mcl_mushrooms:mushroom_red",
|
2019-02-21 03:37:13 +02:00
|
|
|
mushroom_brown = "mcl_mushrooms:mushroom_brown",
|
2017-08-03 17:36:55 +03:00
|
|
|
bucket = "mcl_buckets:bucket_empty",
|
2017-07-05 04:16:25 +03:00
|
|
|
grass_block = "mcl_core:dirt_with_grass",
|
|
|
|
string = "mcl_mobitems:string",
|
|
|
|
stick = "mcl_core:stick",
|
|
|
|
flint = "mcl_core:flint",
|
|
|
|
iron_ingot = "mcl_core:iron_ingot",
|
2017-07-05 20:13:00 +03:00
|
|
|
iron_block = "mcl_core:ironblock",
|
2017-07-05 04:16:25 +03:00
|
|
|
fire = "mcl_fire:fire",
|
|
|
|
gunpowder = "mcl_mobitems:gunpowder",
|
|
|
|
flint_and_steel = "mcl_fire:flint_and_steel",
|
|
|
|
water_source = "mcl_core:water_source",
|
2017-11-30 16:36:17 +02:00
|
|
|
river_water_source = "mclx_core:river_water_source",
|
2017-07-05 04:16:25 +03:00
|
|
|
black_dye = "mcl_dye:black",
|
|
|
|
poppy = "mcl_flowers:poppy",
|
|
|
|
dandelion = "mcl_flowers:dandelion",
|
|
|
|
coal = "mcl_core:coal_lump",
|
|
|
|
emerald = "mcl_core:emerald",
|
|
|
|
iron_axe = "mcl_tools:axe_iron",
|
|
|
|
gold_sword = "mcl_tools:sword_gold",
|
2017-07-05 23:44:18 +03:00
|
|
|
gold_ingot = "mcl_core:gold_ingot",
|
2017-07-05 04:16:25 +03:00
|
|
|
gold_nugget = "mcl_core:gold_nugget",
|
|
|
|
glowstone_dust = "mcl_nether:glowstone_dust",
|
|
|
|
redstone = "mesecons:redstone",
|
|
|
|
glass_bottle = "mcl_potions:glass_bottle",
|
|
|
|
sugar = "mcl_core:sugar",
|
|
|
|
wheat = "mcl_farming:wheat_item",
|
2017-07-05 23:19:58 +03:00
|
|
|
cookie = "mcl_farming:cookie",
|
2017-07-05 04:16:25 +03:00
|
|
|
potato = "mcl_farming:potato_item",
|
2019-10-25 01:42:30 +03:00
|
|
|
hay_bale = "mcl_farming:hay_block",
|
2017-07-05 04:16:25 +03:00
|
|
|
prismarine_shard = "mcl_ocean:prismarine_shard",
|
|
|
|
prismarine_crystals = "mcl_ocean:prismarine_crystals",
|
|
|
|
apple = "mcl_core:apple",
|
|
|
|
golden_apple = "mcl_core:apple_gold",
|
|
|
|
rabbit_foot = "mcl_mobitems:rabbit_foot",
|
2017-07-05 23:19:58 +03:00
|
|
|
wet_sponge = "mcl_sponges:sponge_wet",
|
2017-07-05 04:16:25 +03:00
|
|
|
|
|
|
|
-- Other
|
|
|
|
nether_brick_block = "mcl_nether:nether_brick",
|
2017-07-05 23:44:18 +03:00
|
|
|
netherrack = "mcl_nether:netherrack",
|
|
|
|
nether_star = "mcl_mobitems:nether_star",
|
2020-04-16 13:39:18 +03:00
|
|
|
nether_portal = "mcl_portals:portal",
|
2017-07-05 04:16:25 +03:00
|
|
|
mycelium = "mcl_core:mycelium",
|
|
|
|
carrot = "mcl_farming:carrot_item",
|
|
|
|
golden_carrot = "mcl_farming:carrot_item_gold",
|
2019-09-11 15:07:15 +03:00
|
|
|
fishing_rod = "mcl_fishing:fishing_rod",
|
2017-07-05 04:16:25 +03:00
|
|
|
fish_raw = "mcl_fishing:fish_raw",
|
|
|
|
salmon_raw = "mcl_fishing:salmon_raw",
|
|
|
|
clownfish_raw = "mcl_fishing:clownfish_raw",
|
|
|
|
pufferfish_raw = "mcl_fishing:pufferfish_raw",
|
|
|
|
bone = "mcl_mobitems:bone",
|
|
|
|
slimeball = "mcl_mobitems:slimeball",
|
|
|
|
|
|
|
|
ender_pearl = "mcl_throwing:ender_pearl",
|
|
|
|
|
|
|
|
wool_white = "mcl_wool:white",
|
|
|
|
wool_light_grey = "mcl_wool:silver",
|
|
|
|
wool_grey = "mcl_wool:grey",
|
|
|
|
wool_blue = "mcl_wool:blue",
|
|
|
|
wool_lime = "mcl_wool:lime",
|
|
|
|
wool_green = "mcl_wool:green",
|
|
|
|
wool_purple = "mcl_wool:purple",
|
|
|
|
wool_pink = "mcl_wool:pink",
|
|
|
|
wool_yellow = "mcl_wool:yellow",
|
|
|
|
wool_orange = "mcl_wool:orange",
|
|
|
|
wool_brown = "mcl_wool:brown",
|
|
|
|
wool_red = "mcl_wool:red",
|
|
|
|
wool_cyan = "mcl_wool:cyan",
|
|
|
|
wool_magenta = "mcl_wool:magenta",
|
|
|
|
wool_black = "mcl_wool:black",
|
|
|
|
wool_light_blue = "mcl_wool:light_blue",
|
|
|
|
|
|
|
|
music_discs = {
|
|
|
|
"mcl_jukebox:record_1",
|
2017-11-28 13:45:39 +02:00
|
|
|
"mcl_jukebox:record_2",
|
|
|
|
"mcl_jukebox:record_3",
|
2017-07-05 04:16:25 +03:00
|
|
|
"mcl_jukebox:record_4",
|
2017-11-28 13:45:39 +02:00
|
|
|
"mcl_jukebox:record_5",
|
2017-07-05 04:16:25 +03:00
|
|
|
"mcl_jukebox:record_6",
|
|
|
|
"mcl_jukebox:record_7",
|
|
|
|
"mcl_jukebox:record_8",
|
|
|
|
"mcl_jukebox:record_9",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2020-08-03 16:37:58 +03:00
|
|
|
--Horses, Llamas, and Wolves shouldn't follow, but leaving this alone until leads are implemented.
|
2017-07-05 04:16:25 +03:00
|
|
|
mobs_mc.override.follow = {
|
|
|
|
chicken = { "mcl_farming:wheat_seeds", "mcl_farming:melon_seeds", "mcl_farming:pumpkin_seeds", "mcl_farming:beetroot_seeds", },
|
2020-08-03 16:37:58 +03:00
|
|
|
parrot = { "mcl_farming:wheat_seeds", "mcl_farming:melon_seeds", "mcl_farming:pumpkin_seeds", "mcl_farming:beetroot_seeds", },
|
2017-07-05 04:16:25 +03:00
|
|
|
pig = { mobs_mc.override.items.potato, mobs_mc.override.items.carrot, "mcl_farming:beetroot_item", mobs_mc.override.items.carrot_on_a_stick},
|
|
|
|
ocelot = { mobs_mc.override.items.fish_raw, mobs_mc.override.items.salmon_raw, mobs_mc.override.items.clownfish_raw, mobs_mc.override.items.pufferfish_raw, },
|
2017-07-05 21:44:49 +03:00
|
|
|
sheep = { mobs_mc.override.items.wheat },
|
|
|
|
cow = { mobs_mc.override.items.wheat },
|
|
|
|
horse = { mobs_mc.override.items.apple, mobs_mc.override.items.sugar, mobs_mc.override.items.wheat, mobs_mc.override.items.hay_bale, mobs_mc.override.items.golden_apple, mobs_mc.override.items.golden_carrot },
|
2019-10-25 01:42:30 +03:00
|
|
|
llama = { mobs_mc.override.items.wheat, mobs_mc.override.items.hay_bale },
|
2017-07-05 21:44:49 +03:00
|
|
|
rabbit = { mobs_mc.override.items.dandelion, mobs_mc.override.items.carrot, mobs_mc.override.items.golden_carrot },
|
2019-10-25 01:56:31 +03:00
|
|
|
wolf = { mobs_mc.override.items.bone },
|
|
|
|
dog = { mobs_mc.override.items.rabbit_raw, mobs_mc.override.items.rabbit_cooked, mobs_mc.override.items.mutton_raw, mobs_mc.override.items.mutton_cooked, mobs_mc.override.items.beef_raw, mobs_mc.override.items.beef_cooked, mobs_mc.override.items.chicken_raw, mobs_mc.override.items.chicken_cooked, mobs_mc.override.items.rotten_flesh, mobs_mc.override.items.porkchop_raw, mobs_mc.override.items.porkchop_cooked },
|
2017-07-05 04:16:25 +03:00
|
|
|
}
|
|
|
|
|
2017-07-06 00:55:16 +03:00
|
|
|
mobs_mc.override.replace = {
|
2017-07-06 00:08:26 +03:00
|
|
|
-- Rabbits reduce carrot growth stage by 1
|
|
|
|
rabbit = {
|
2017-07-06 01:35:32 +03:00
|
|
|
{"mcl_farming:carrot", "mcl_farming:carrot_7", 0},
|
|
|
|
{"mcl_farming:carrot_7", "mcl_farming:carrot_6", 0},
|
|
|
|
{"mcl_farming:carrot_6", "mcl_farming:carrot_5", 0},
|
|
|
|
{"mcl_farming:carrot_5", "mcl_farming:carrot_4", 0},
|
|
|
|
{"mcl_farming:carrot_4", "mcl_farming:carrot_3", 0},
|
|
|
|
{"mcl_farming:carrot_3", "mcl_farming:carrot_2", 0},
|
|
|
|
{"mcl_farming:carrot_2", "mcl_farming:carrot_1", 0},
|
2017-07-06 00:08:26 +03:00
|
|
|
{"mcl_farming:carrot_1", "air", 0},
|
|
|
|
},
|
|
|
|
-- Sheep eat grass
|
|
|
|
sheep = {
|
|
|
|
{ "mcl_core:dirt_with_grass", "mcl_core:dirt", -1 },
|
|
|
|
{ "mcl_flowers:tallgrass", "air", 0 },
|
|
|
|
},
|
|
|
|
-- Silverfish populate stone, etc. with monster eggs
|
|
|
|
silverfish = {
|
2017-07-06 00:48:48 +03:00
|
|
|
{"mcl_core:stone", "mcl_monster_eggs:monster_egg_stone", -1},
|
|
|
|
{"mcl_core:cobble", "mcl_monster_eggs:monster_egg_cobble", -1},
|
|
|
|
{"mcl_core:stonebrick", "mcl_monster_eggs:monster_egg_stonebrick", -1},
|
|
|
|
{"mcl_core:stonebrickmossy", "mcl_monster_eggs:monster_egg_stonebrickmossy", -1},
|
|
|
|
{"mcl_core:stonebrickcracked", "mcl_monster_eggs:monster_egg_stonebrickcracked", -1},
|
|
|
|
{"mcl_core:stonebrickcarved", "mcl_monster_eggs:monster_egg_stonebrickcarved", -1},
|
2017-07-06 00:08:26 +03:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2018-01-25 22:03:58 +02:00
|
|
|
mobs_mc.override.misc = {
|
|
|
|
totem_fail_nodes = { "mcl_core:void", "mcl_core:realm_barrier" },
|
|
|
|
}
|
2017-08-23 05:34:06 +03:00
|
|
|
|
2017-07-05 04:16:25 +03:00
|
|
|
-- List of nodes on which mobs can spawn
|
|
|
|
mobs_mc.override.spawn = {
|
|
|
|
solid = { "group:solid", }, -- spawn on "solid" nodes
|
2017-11-15 03:36:56 +02:00
|
|
|
grassland = { "mcl_core:dirt_with_grass" },
|
2019-12-13 16:36:20 +02:00
|
|
|
savanna = { "mcl_core:dirt_with_grass" },
|
|
|
|
grassland_savanna = { "mcl_core:dirt_with_grass" },
|
2017-11-15 03:36:56 +02:00
|
|
|
desert = { "mcl_core:sand", "mcl_core:sandstone" },
|
2017-08-31 18:27:58 +03:00
|
|
|
jungle = { "mcl_core:jungletree", "mcl_core:jungleleaves", "mcl_flowers:fern", "mcl_core:vine" },
|
2019-12-13 16:36:20 +02:00
|
|
|
snow = { "mcl_core:snow", "mcl_core:snowblock", "mcl_core:dirt_with_grass_snow" },
|
2017-08-18 16:32:08 +03:00
|
|
|
-- End stone added for shulkers because End cities don't generate yet
|
|
|
|
end_city = { "mcl_end:end_stone", "mcl_end:purpur_block" },
|
2017-08-16 23:08:17 +03:00
|
|
|
-- Netherrack added because there are no Nether fortresses yet. TODO: Remove netherrac from list as soon they're available
|
|
|
|
nether_fortress = { "mcl_nether:nether_brick", "mcl_nether:netherrack" },
|
2020-04-16 13:39:18 +03:00
|
|
|
nether_portal = { mobs_mc.override.items.nether_portal },
|
2019-12-13 16:36:20 +02:00
|
|
|
wolf = { mobs_mc.override.items.grass_block, "mcl_core:dirt", "mcl_core:dirt_with_grass_snow", "mcl_core:snow", "mcl_core:snowblock", "mcl_core:podzol" },
|
2021-02-09 14:06:19 +02:00
|
|
|
village = { "mcl_villages:stonebrickcarved", "mcl_core:grass_path", "mcl_core:sandstonesmooth2" },
|
2017-07-05 04:16:25 +03:00
|
|
|
}
|
|
|
|
|
2017-08-16 23:08:17 +03:00
|
|
|
-- This table contains important spawn height references for the mob spawn height.
|
|
|
|
mobs_mc.override.spawn_height = {
|
2018-06-20 20:02:52 +03:00
|
|
|
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
|
2017-08-16 23:08:17 +03:00
|
|
|
|
|
|
|
-- Overworld boundaries (inclusive)
|
|
|
|
overworld_min = mcl_vars.mg_overworld_min,
|
|
|
|
overworld_max = mcl_vars.mg_overworld_max,
|
|
|
|
|
|
|
|
-- Nether boundaries (inclusive)
|
|
|
|
nether_min = mcl_vars.mg_nether_min,
|
|
|
|
nether_max = mcl_vars.mg_nether_max,
|
|
|
|
|
|
|
|
-- End boundaries (inclusive)
|
|
|
|
end_min = mcl_vars.mg_end_min,
|
|
|
|
end_max = mcl_vars.mg_end_max,
|
|
|
|
}
|
|
|
|
|