2017-06-23 14:50:25 +02:00
--[[ This table contains the concrete itemstrings to be used by this mod.
All mobs in this mod must use variables in this table , instead
of hardcoding the itemstring .
This way , external mods are enabled to replace the itemstrings to provide
their own items and subgame integration is made much simpler .
2017-06-23 15:46:56 +02:00
An item IDs is supposed to be overwritten by adding
mobs_mc.override . items [ " example:item " ] in a subgame mod
with name " mobs_mc_gameconfig " . ] ]
2017-06-23 14:50:25 +02:00
-- Standard items
2017-06-23 22:04:15 +02:00
-- If true, mobs_mc adds the monster egg nodes (needs default mod).
-- Set to false in your gameconfig mod if you create your own monster egg nodes.
mobs_mc.create_monster_egg_nodes = true
2017-06-23 14:50:25 +02:00
mobs_mc.items = { }
2017-06-23 16:36:02 +02:00
mobs_mc.items = {
2017-06-24 19:32:55 +02:00
-- Items defined in mobs_mc
2017-06-23 16:36:02 +02:00
blaze_rod = " mobs_mc:blaze_rod " ,
blaze_powder = " mobs_mc:blaze_powder " ,
chicken_raw = " mobs_mc:chicken_raw " ,
chicken_cooked = " mobs_mc:chicken_cooked " ,
feather = " mobs_mc:feather " ,
beef_raw = " mobs_mc:beef_raw " ,
beef_cooked = " mobs_mc:beef_cooked " ,
bowl = " mobs_mc:bowl " ,
mushroom_stew = " mobs_mc:mushroom_stew " ,
2017-06-23 18:26:00 +02:00
milk = " mobs_mc:milk_bucket " ,
2017-06-23 16:36:02 +02:00
dragon_egg = " mobs_mc:dragon_egg " ,
egg = " mobs_mc:egg " ,
ender_eye = " mobs_mc:ender_eye " ,
ghast_tear = " mobs_mc:ghast_tear " ,
saddle = " mobs_mc:saddle " ,
porkchop_raw = " mobs_mc:porkchop_raw " ,
porkchop_cooked = " mobs_mc:porkchop_cooked " ,
carrot_on_a_stick = " mobs_mc:carrot_on_a_stick " ,
rabbit_raw = " mobs_mc:rabbit_raw " ,
rabbit_cooked = " mobs_mc:rabbit_cooked " ,
rabbit_hide = " mobs_mc:rabbit_hide " ,
mutton_raw = " mobs_mc:mutton_raw " ,
mutton_cooked = " mobs_mc:mutton_cooked " ,
shulker_shell = " mobs_mc:shulker_shell " ,
magma_cream = " mobs_mc:magma_cream " ,
spider_eye = " mobs_mc:spider_eye " ,
totem = " mobs_mc:totem " ,
rotten_flesh = " mobs_mc:rotten_flesh " ,
2017-06-23 14:50:25 +02:00
2017-06-23 16:36:02 +02:00
arrow = " mobs_mc:arrow " ,
bow = " mobs_mc:bow_wood " ,
2017-06-23 14:50:25 +02:00
2017-06-24 19:32:55 +02:00
-- External items
2017-06-23 16:36:02 +02:00
-- Mobs Redo
leather = " mobs:leather " ,
shears = " mobs:shears " ,
2017-06-23 14:50:25 +02:00
2017-06-23 16:36:02 +02:00
-- Minetest Game
mushroom_red = " flowers:mushroom_red " ,
bucket = " bucket:bucket_empty " ,
grass_block = " default:dirt_with_grass " ,
string = " farming:string " ,
2017-06-23 18:26:00 +02:00
stick = " default:stick " ,
2017-06-23 16:36:02 +02:00
flint = " default:flint " ,
iron_ingot = " default:steel_ingot " ,
2017-06-23 18:26:00 +02:00
fire = " fire:basic_flame " ,
gunpowder = " tnt:gunpowder " ,
flint_and_steel = " fire:flint_and_steel " ,
water_source = " default:water_source " ,
black_dye = " dye:black " ,
poppy = " flowers:rose " ,
dandelion = " flowers:dandelion_yellow " ,
coal = " default:coal_lump " ,
emerald = " default:diamond " ,
iron_axe = " default:axe_steel " ,
gold_sword = " default:sword_mese " ,
gold_nugget = " default:gold_lump " ,
glowstone_dust = " default:mese_crystal_fragment " ,
redstone = " default:mese_crystal_fragment " ,
glass_bottle = " vessels:glass_bottle " ,
sugar = " default:papyrus " ,
2017-06-27 19:08:12 +02:00
wheat = " farming:wheat " ,
hay_bale = " farming:straw " ,
2017-06-23 18:26:00 +02:00
-- Other
nether_brick_block = " nether:brick " ,
mycelium = " ethereal:mushroom_dirt " ,
carrot = " farming:carrot " ,
2017-06-27 23:00:36 +02:00
potato = " farming:potato " ,
2017-06-23 18:26:00 +02:00
golden_carrot = " farming:carrot_gold " ,
fishing_rod = " fishing:pole_wood " ,
fish_raw = " fishing:fish_raw " ,
2017-06-23 22:10:54 +02:00
salmon_raw = " fishing:carp_raw " ,
clownfish_raw = " fishing:clownfish_raw " ,
pufferfish_raw = " fishing:pike_raw " ,
2017-06-23 18:26:00 +02:00
bone = " bonemeal:bone " ,
slimeball = " mesecons_materials:glue " ,
2017-06-27 23:00:36 +02:00
apple = " default:apple " ,
2017-06-27 19:08:12 +02:00
golden_apple = " default:apple " ,
2017-06-23 18:26:00 +02:00
-- TODO: Add actual ender pearl
ender_pearl = " farorb:farorb " ,
2017-06-24 16:20:35 +02:00
2017-06-24 17:39:36 +02:00
nether_portal = " nether:portal " ,
netherrack = " nether:rack " ,
nether_brick_block = " nether:brick " ,
2017-06-24 16:20:35 +02:00
-- Wool (Minecraft color scheme)
wool_white = " wool:white " ,
wool_light_grey = " wool:grey " ,
wool_grey = " wool:dark_grey " ,
wool_blue = " wool:blue " ,
wool_lime = " wool:green " ,
wool_green = " wool:dark_green " ,
wool_purple = " wool:violet " ,
wool_pink = " wool:pink " ,
wool_yellow = " wool:yellow " ,
wool_orange = " wool:orange " ,
wool_brown = " wool:brown " ,
wool_red = " wool:red " ,
wool_cyan = " wool:cyan " ,
wool_magenta = " wool:magenta " ,
wool_black = " wool:black " ,
-- Light blue intentionally missing
2017-06-23 16:36:02 +02:00
}
2017-06-23 14:50:25 +02:00
-- Tables for attracting, feeding and breeding mobs
2017-06-23 16:36:02 +02:00
mobs_mc.follow = {
2017-06-23 18:26:00 +02:00
sheep = { mobs_mc.items . wheat } ,
2017-06-23 21:27:55 +02:00
cow = { mobs_mc.items . wheat } ,
2017-06-23 16:36:02 +02:00
chicken = { " farming:seed_wheat " , " farming:seed_cotton " } ,
2017-06-27 23:00:36 +02:00
horse = { mobs_mc.items . apple , mobs_mc.items . sugar , mobs_mc.items . wheat , mobs_mc.items . hay_bale , mobs_mc.items . golden_apple , mobs_mc.items . golden_carrot } , -- TODO
pig = { mobs_mc.items . potato , mobs_mc.items . carrot , mobs_mc.items . carrot_on_a_stick ,
mobs_mc.items . apple , -- Minetest Game extra
2017-06-24 23:40:28 +02:00
} ,
2017-06-23 18:26:00 +02:00
rabbit = { mobs_mc.items . dandelion , mobs_mc.items . carrot , mobs_mc.items . carrot_gold , " farming_plus:carrot_item " , } ,
2017-06-24 23:40:28 +02:00
ocelot = { mobs_mc.items . fish_raw , mobs_mc.items . salmon_raw , mobs_mc.items . clownfish_raw , mobs_mc.items . pufferfish_raw ,
mobs_mc.items . chicken_raw , -- Minetest Game extra
} ,
2017-06-23 16:36:02 +02:00
}
2017-06-23 15:46:56 +02:00
2017-06-23 22:01:14 +02:00
-- Contents for replace_what
mobs_mc.replace = {
-- Rabbits reduce carrot growth stage by 1
rabbit = {
-- Farming Redo carrots
{ " farming:carrot_8 " , " farming:carrot_7 " , 0 } ,
{ " farming:carrot_7 " , " farming:carrot_6 " , 0 } ,
{ " farming:carrot_6 " , " farming:carrot_5 " , 0 } ,
{ " farming:carrot_5 " , " farming:carrot_4 " , 0 } ,
{ " farming:carrot_4 " , " farming:carrot_3 " , 0 } ,
{ " farming:carrot_3 " , " farming:carrot_2 " , 0 } ,
{ " farming:carrot_2 " , " farming:carrot_1 " , 0 } ,
{ " farming:carrot_1 " , " air " , 0 } ,
-- Farming Plus carrots
{ " farming_plus:carrot " , " farming_plus:carrot_7 " , 0 } ,
{ " farming_plus:carrot_6 " , " farming_plus:carrot_5 " , 0 } ,
{ " farming_plus:carrot_5 " , " farming_plus:carrot_4 " , 0 } ,
{ " farming_plus:carrot_4 " , " farming_plus:carrot_3 " , 0 } ,
{ " farming_plus:carrot_3 " , " farming_plus:carrot_2 " , 0 } ,
{ " farming_plus:carrot_2 " , " farming_plus:carrot_1 " , 0 } ,
{ " farming_plus:carrot_1 " , " air " , 0 } ,
} ,
-- Sheep eat grass
sheep = {
-- Grass Block
{ " default:dirt_with_grass " , " default:dirt " , - 1 } ,
-- “Tall Grass”
{ " default:grass_5 " , " air " , 0 } ,
{ " default:grass_4 " , " air " , 0 } ,
{ " default:grass_3 " , " air " , 0 } ,
{ " default:grass_2 " , " air " , 0 } ,
{ " default:grass_1 " , " air " , 0 } ,
} ,
-- Silverfish populate stone, etc. with monster eggs
silverfish = {
{ " default:stone " , " mobs_mc:monster_egg_stone " , - 1 } ,
{ " default:cobble " , " mobs_mc:monster_egg_cobble " , - 1 } ,
{ " default:mossycobble " , " mobs_mc:monster_egg_mossycobble " , - 1 } ,
{ " default:stonebrick " , " mobs_mc:monster_egg_stonebrick " , - 1 } ,
{ " default:stone_block " , " mobs_mc:monster_egg_stone_block " , - 1 } ,
} ,
}
2017-06-23 18:53:22 +02:00
-- List of nodes which endermen can take
mobs_mc.enderman_takable = {
-- Generic handling, useful for entensions
" group:enderman_takable " ,
2017-06-23 15:46:56 +02:00
2017-06-23 18:53:22 +02:00
-- Generic nodes
" group:sand " ,
" group:flower " ,
-- Minetest Game
" default:dirt " ,
" default:dirt_with_grass " ,
" default:dirt_with_dry_grass " ,
" default:dirt_with_snow " ,
" default:dirt_with_rainforest_litter " ,
" default:dirt_with_grass_footsteps " ,
" default:cactus " ,
" default:gravel " ,
" default:clay " ,
" flowers:mushroom_red " ,
" flowers:mushroom_brown " ,
" tnt:tnt " ,
-- Nether mod
" nether:rack " ,
}
2017-06-23 15:46:56 +02:00
2017-06-24 17:39:36 +02:00
-- List of nodes on which mobs can spawn
mobs_mc.spawn = {
2017-06-26 19:53:54 -04:00
solid = { " group:cracky " , " group:crumbly " , " group:shovely " , " group:pickaxey " } , -- spawn on "solid" nodes (this is mostly just guessing)
2017-06-24 17:39:36 +02:00
grassland = { mobs_mc.items . grass_block , " ethereal:prairie_dirt " } ,
savanna = { " default:dirt_with_dry_grass " } ,
grassland_savanna = { mobs_mc.items . grass_block , " default:dirt_with_dry_grass " } ,
2017-06-27 23:22:50 -04:00
desert = { " default:desert_sand " , " group:sand " } ,
2017-06-24 17:39:36 +02:00
jungle = { " default:dirt_with_rainforest_litter " , " default:jungleleaves " } ,
snow = { " default:snow " , " default:snowblock " , " default:dirt_with_snow " } ,
2017-06-27 23:22:50 -04:00
end_city = { " default:cobble " , " mcl_end:end_stone " } ,
2017-06-24 17:39:36 +02:00
wolf = { mobs_mc.items . grass_block , " default:dirt_with_rainforest_litter " , " default:dirt " , " default:dirt_with_snow " , " default:snow " , " default:snowblock " } ,
-- These probably don't need overrides
mushroom_island = { mobs_mc.items . mycelium } ,
nether_fortress = { mobs_mc.items . nether_brick_block } ,
nether = { mobs_mc.items . netherrack } ,
nether_portal = { mobs_mc.items . nether_portal } ,
water = { mobs_mc.items . water_source } ,
}
2017-06-23 15:46:56 +02:00
-- Item name overrides from mobs_mc_gameconfig (if present)
if minetest.get_modpath ( " mobs_mc_gameconfig " ) and mobs_mc.override then
2017-06-24 18:04:45 +02:00
local tables = { " items " , " follow " , " replace " , " spawn " }
2017-06-23 22:01:14 +02:00
for t = 1 , # tables do
local tbl = tables [ t ]
if mobs_mc.override [ tbl ] then
for k , v in pairs ( mobs_mc.override [ tbl ] ) do
mobs_mc [ tbl ] [ k ] = v
end
2017-06-23 15:46:56 +02:00
end
end
2017-06-23 22:01:14 +02:00
2017-06-23 18:53:22 +02:00
if mobs_mc.override . enderman_takable then
mobs_mc.enderman_takable = mobs_mc.override . enderman_takable
end
2017-06-23 15:46:56 +02:00
end