cropocalypse/miscellaneous.lua

48 lines
2.3 KiB
Lua

-- cropocalypse/miscellaneous.lua
-- This Is Where The Extras Go
-- Adds Cropocalypse Items As Dungeon Loot
if minetest.global_exists("dungeon_loot") then
dungeon_loot.register({
{name = "cropocalypse:carrot_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:potato_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:beet_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:soybean_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:garlic_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:corn_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:cocao_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:morel_mushroom_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:oyster_mushroom_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:shiitake_mushroom_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:button_mushroom_seed", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:saucer_mushroom", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:puffed_mushroom", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:veiled_mushroom", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:slimy_mushroom", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:king_mushroom", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:melting_mushroom", chance = 0.3, count = {1, 4}},
{name = "cropocalypse:magic_mushroom", chance = 0.3, count = {1, 4},
types = {"normal"}},
})
end
-- If The Bonemeal Mod Is Installed This Adds The Crops To Be Bonemealed
if minetest.get_modpath("bonemeal") then
bonemeal:add_crop({
{"cropocalypse:carrot_", 8, "cropocalypse:seed_carrot"},
{"cropocalypse:potato_", 8, "cropocalypse:seed_potato"},
{"cropocalypse:beet_", 8, "cropocalypse:seed_beet"},
{"cropocalypse:soybean_", 8, "cropocalypse:seed_soybean"},
{"cropocalypse:garlic_", 8, "cropocalypse:seed_garlic"},
{"cropocalypse:corn_", 8, "cropocalypse:seed_corn"},
{"cropocalypse:cocao_", 8, "cropocalypse:seed_cocao"},
{"cropocalypse:morel_mushroom_", 8, "cropocalypse:seed_morel_mushroom"},
{"cropocalypse:oyster_mushroom_", 8, "cropocalypse:seed_oyster_mushroom"},
{"cropocalypse:shiitake_mushroom_", 8, "cropocalypse:seed_shiitake_mushroom"},
{"cropocalypse:button_mushroom_", 8, "cropocalypse:seed_button_mushroom"}
})
end