2017-07-05 03:16:25 +02: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 19:13:00 +02:00
|
|
|
snow_block = "mcl_core:snowblock",
|
2017-07-05 03:16:25 +02:00
|
|
|
arrow = "mcl_throwing:arrow",
|
|
|
|
bow = "mcl_throwing:bow",
|
2017-07-05 19:13:00 +02: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 03:16:25 +02:00
|
|
|
|
|
|
|
leather = "mcl_mobitems:leather",
|
|
|
|
shears = "mcl_tools:shears",
|
|
|
|
|
|
|
|
mushroom_red = "mcl_mushrooms:mushroom_red",
|
2017-08-03 16:36:55 +02:00
|
|
|
bucket = "mcl_buckets:bucket_empty",
|
2017-07-05 03:16:25 +02: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 19:13:00 +02:00
|
|
|
iron_block = "mcl_core:ironblock",
|
2017-07-05 03:16:25 +02:00
|
|
|
fire = "mcl_fire:fire",
|
|
|
|
gunpowder = "mcl_mobitems:gunpowder",
|
|
|
|
flint_and_steel = "mcl_fire:flint_and_steel",
|
|
|
|
water_source = "mcl_core:water_source",
|
|
|
|
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 22:44:18 +02:00
|
|
|
gold_ingot = "mcl_core:gold_ingot",
|
2017-07-05 03:16:25 +02: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 22:19:58 +02:00
|
|
|
cookie = "mcl_farming:cookie",
|
2017-07-05 03:16:25 +02:00
|
|
|
potato = "mcl_farming:potato_item",
|
|
|
|
hay_bale = "mcl_farming:hay_bale",
|
|
|
|
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 22:19:58 +02:00
|
|
|
wet_sponge = "mcl_sponges:sponge_wet",
|
2017-07-05 03:16:25 +02:00
|
|
|
|
|
|
|
-- Other
|
|
|
|
nether_brick_block = "mcl_nether:nether_brick",
|
2017-07-05 22:44:18 +02:00
|
|
|
netherrack = "mcl_nether:netherrack",
|
|
|
|
nether_star = "mcl_mobitems:nether_star",
|
2017-07-05 03:16:25 +02:00
|
|
|
mycelium = "mcl_core:mycelium",
|
|
|
|
carrot = "mcl_farming:carrot_item",
|
|
|
|
golden_carrot = "mcl_farming:carrot_item_gold",
|
|
|
|
fishing_rod = "mcl_fishing:fishing_rod",
|
|
|
|
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 = {
|
2017-07-06 15:40:13 +02:00
|
|
|
-- Music discs 2, 3 and 5 intentionally left out for the temporary crafting recipes
|
2017-07-05 03:16:25 +02:00
|
|
|
"mcl_jukebox:record_1",
|
|
|
|
"mcl_jukebox:record_4",
|
|
|
|
"mcl_jukebox:record_6",
|
|
|
|
"mcl_jukebox:record_7",
|
|
|
|
"mcl_jukebox:record_8",
|
|
|
|
"mcl_jukebox:record_9",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
mobs_mc.override.follow = {
|
|
|
|
chicken = { "mcl_farming:wheat_seeds", "mcl_farming:melon_seeds", "mcl_farming:pumpkin_seeds", "mcl_farming:beetroot_seeds", },
|
|
|
|
parrot = { "mcl_farming:seed_wheat", "mcl_farming:seed_beetroot", "mcl_farming:seed_pumpkin", "mcl_farming:seed_melon" }, -- seeds in general
|
|
|
|
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 20:44:49 +02: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 },
|
|
|
|
rabbit = { mobs_mc.override.items.dandelion, mobs_mc.override.items.carrot, mobs_mc.override.items.golden_carrot },
|
2017-07-05 03:16:25 +02:00
|
|
|
}
|
|
|
|
|
2017-07-05 23:55:16 +02:00
|
|
|
mobs_mc.override.replace = {
|
2017-07-05 23:08:26 +02:00
|
|
|
-- Rabbits reduce carrot growth stage by 1
|
|
|
|
rabbit = {
|
2017-07-06 00:35:32 +02: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-05 23:08:26 +02: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-05 23:48:48 +02: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-05 23:08:26 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2017-07-05 03:16:25 +02:00
|
|
|
-- List of nodes which endermen can take
|
|
|
|
mobs_mc.override.enderman_takable = {
|
|
|
|
-- Generic handling, useful for entensions
|
|
|
|
"group:enderman_takable",
|
|
|
|
}
|
|
|
|
|
|
|
|
-- List of nodes on which mobs can spawn
|
|
|
|
mobs_mc.override.spawn = {
|
|
|
|
solid = { "group:solid", }, -- spawn on "solid" nodes
|
|
|
|
grassland = { mobs_mc.override.items.grass_block },
|
|
|
|
savanna = { "group:sand", "mcl_core:sandstone", "mcl_core:redsandstone" },
|
|
|
|
grassland_savanna = { mobs_mc.override.items.grass_block, "group:sand", "mcl_core:sandstone", "mcl_core:redsandstone" },
|
|
|
|
desert = { "group:sand" },
|
2017-08-07 16:09:02 +02:00
|
|
|
jungle = { "mcl_core:podzol", "mcl_core:jungletree", "mcl_core:jungleleaves", "mcl_flowers:fern" },
|
2017-07-05 03:16:25 +02:00
|
|
|
snow = { "mcl_core:snow", "mcl_core:snowblock", "mcl_core:dirt_with_grass_snow" },
|
2017-08-18 15:32:08 +02: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 22:08:17 +02:00
|
|
|
nether = { "mcl_nether:netherrack", "mcl_nether:quartz_ore" },
|
|
|
|
-- 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" },
|
2017-07-05 03:16:25 +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" },
|
|
|
|
}
|
|
|
|
|
2017-08-16 22:08:17 +02:00
|
|
|
-- This table contains important spawn height references for the mob spawn height.
|
|
|
|
mobs_mc.override.spawn_height = {
|
|
|
|
water = tonumber(minetest.setting_get("water_level")) or 0, -- Water level in the Overworld
|
|
|
|
|
|
|
|
-- 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,
|
|
|
|
}
|
|
|
|
|