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",
|
2018-05-07 23:10:49 +02:00
|
|
|
arrow = "mcl_bows:arrow",
|
|
|
|
bow = "mcl_bows: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",
|
2019-02-21 02:37:13 +01:00
|
|
|
mushroom_brown = "mcl_mushrooms:mushroom_brown",
|
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",
|
2017-11-30 15:36:17 +01:00
|
|
|
river_water_source = "mclx_core:river_water_source",
|
2017-07-05 03:16:25 +02: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 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",
|
2019-10-25 00:42:30 +02:00
|
|
|
hay_bale = "mcl_farming:hay_block",
|
2017-07-05 03:16:25 +02: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 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",
|
2019-09-11 14:07:15 +02:00
|
|
|
fishing_rod = "mcl_fishing:fishing_rod",
|
2017-07-05 03:16:25 +02: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 12:45:39 +01:00
|
|
|
"mcl_jukebox:record_2",
|
|
|
|
"mcl_jukebox:record_3",
|
2017-07-05 03:16:25 +02:00
|
|
|
"mcl_jukebox:record_4",
|
2017-11-28 12:45:39 +01:00
|
|
|
"mcl_jukebox:record_5",
|
2017-07-05 03:16:25 +02:00
|
|
|
"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 },
|
2019-10-25 00:42:30 +02:00
|
|
|
llama = { mobs_mc.override.items.wheat, mobs_mc.override.items.hay_bale },
|
2017-07-05 20:44:49 +02:00
|
|
|
rabbit = { mobs_mc.override.items.dandelion, mobs_mc.override.items.carrot, mobs_mc.override.items.golden_carrot },
|
2019-10-25 00:56:31 +02: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 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",
|
|
|
|
}
|
2018-01-25 21:03:58 +01:00
|
|
|
mobs_mc.override.misc = {
|
|
|
|
totem_fail_nodes = { "mcl_core:void", "mcl_core:realm_barrier" },
|
|
|
|
}
|
2017-08-23 04:34:06 +02:00
|
|
|
|
|
|
|
-- Texuture overrides for enderman block. Required for cactus because it's original is a nodebox
|
|
|
|
-- and the textures have tranparent pixels.
|
|
|
|
local cbackground = "mobs_mc_gameconfig_enderman_cactus_background.png"
|
|
|
|
local ctiles = minetest.registered_nodes["mcl_core:cactus"].tiles
|
|
|
|
|
|
|
|
local ctable = {}
|
|
|
|
local last
|
|
|
|
for i=1, 6 do
|
|
|
|
if ctiles[i] then
|
|
|
|
last = ctiles[i]
|
|
|
|
end
|
|
|
|
table.insert(ctable, cbackground .. "^" .. last)
|
|
|
|
end
|
|
|
|
mobs_mc.override.enderman_block_texture_overrides = {
|
|
|
|
["mcl_core:cactus"] = ctable,
|
|
|
|
}
|
|
|
|
|
2017-07-05 03:16:25 +02:00
|
|
|
-- List of nodes on which mobs can spawn
|
|
|
|
mobs_mc.override.spawn = {
|
|
|
|
solid = { "group:solid", }, -- spawn on "solid" nodes
|
2017-11-15 02:36:56 +01:00
|
|
|
grassland = { "mcl_core:dirt_with_grass" },
|
2019-12-13 15:36:20 +01:00
|
|
|
savanna = { "mcl_core:dirt_with_grass" },
|
|
|
|
grassland_savanna = { "mcl_core:dirt_with_grass" },
|
2017-11-15 02:36:56 +01:00
|
|
|
desert = { "mcl_core:sand", "mcl_core:sandstone" },
|
2017-08-31 17:27:58 +02:00
|
|
|
jungle = { "mcl_core:jungletree", "mcl_core:jungleleaves", "mcl_flowers:fern", "mcl_core:vine" },
|
2019-12-13 15:36:20 +01: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" },
|
2019-12-13 15:36:20 +01: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-07-05 03:16:25 +02:00
|
|
|
}
|
|
|
|
|
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 = {
|
2018-06-20 19:02:52 +02:00
|
|
|
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
|
2017-08-16 22:08:17 +02: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,
|
|
|
|
}
|
|
|
|
|