2015-09-21 12:55:29 +02:00
|
|
|
|
2016-02-07 13:20:21 +01:00
|
|
|
-- Default tree schematics
|
|
|
|
local dpath = minetest.get_modpath("default") .. "/schematics/"
|
|
|
|
|
|
|
|
lucky_block:add_schematics({
|
|
|
|
{"appletree", dpath .. "apple_tree_from_sapling.mts", {x = 2, y = 1, z = 2}},
|
|
|
|
{"jungletree", dpath .. "jungle_tree_from_sapling.mts", {x = 2, y = 1, z = 2}},
|
|
|
|
{"defpinetree", dpath .. "pine_tree_from_sapling.mts", {x = 2, y = 1, z = 2}},
|
|
|
|
{"acaciatree", dpath .. "acacia_tree_from_sapling.mts", {x = 4, y = 1, z = 4}},
|
|
|
|
{"aspentree", dpath .. "aspen_tree_from_sapling.mts", {x = 2, y = 1, z = 2}},
|
2017-04-25 11:23:00 +02:00
|
|
|
{"corals", dpath .. "corals.mts", {x = 2, y = 1, z = 2}},
|
2016-02-07 13:20:21 +01:00
|
|
|
})
|
|
|
|
|
2015-09-21 12:55:29 +02:00
|
|
|
-- Default blocks
|
|
|
|
lucky_block:add_blocks({
|
2015-12-11 13:48:18 +01:00
|
|
|
{"sch", "watertrap", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"tel"},
|
|
|
|
{"dro", {"wool:"}, 10, true},
|
|
|
|
{"dro", {"default:apple"}, 10},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "appletree", 0, false},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:snow"}, 10},
|
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "bucket:bucket_water", max = 1},
|
|
|
|
{name = "default:wood", max = 3},
|
|
|
|
{name = "default:pick_diamond", max = 1},
|
|
|
|
{name = "default:coal_lump", max = 3}}},
|
2015-12-11 13:48:18 +01:00
|
|
|
{"sch", "sandtrap", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "flowers:rose", 0},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "defpinetree", 0, false},
|
2016-02-01 19:55:23 +01:00
|
|
|
{"sch", "lavatrap", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:mese_crystal_fragment", "default:mese_crystal"}, 10},
|
2017-07-09 10:40:54 +02:00
|
|
|
{"exp", 2},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "default:diamondblock", 0},
|
|
|
|
{"nod", "default:steelblock", 0},
|
|
|
|
{"nod", "default:dirt", 0},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"dro", {"dye:"}, 10, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:sword_steel"}, 1},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "jungletree", 0, false},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:pick_steel"}, 1},
|
|
|
|
{"dro", {"default:shovel_steel"}, 1},
|
|
|
|
{"dro", {"default:coal_lump"}, 3},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "acaciatree", 0, false},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:axe_steel"}, 1},
|
|
|
|
{"dro", {"default:sword_bronze"}, 1},
|
2017-04-25 11:23:00 +02:00
|
|
|
{"exp", 3},
|
2015-12-11 13:48:18 +01:00
|
|
|
{"sch", "platform", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "default:wood", 0},
|
|
|
|
{"dro", {"default:pick_bronze"}, 1},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "aspentree", 0, false},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:shovel_bronze"}, 1},
|
|
|
|
{"nod", "default:gravel", 0},
|
|
|
|
{"dro", {"default:axe_bronze"}, 1},
|
2017-04-25 11:23:00 +02:00
|
|
|
{"dro", {"default:bookshelf", "default:book", "default:paper"}, 5},
|
|
|
|
{"dro", {"default:fence_wood", "default:fence_acacia_wood", "default:fence_aspen_wood",
|
|
|
|
"default:fence_junglewood", "default:fence_pine_wood"}, 15},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
|
2017-06-08 15:36:57 +02:00
|
|
|
-- default coral blocks
|
2017-04-25 11:23:00 +02:00
|
|
|
if minetest.registered_nodes["default:coral_brown"] then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"default:coral_brown", "default:coral_orange", "default:coral_skeleton"}, 5},
|
|
|
|
{"sch", "corals", 0, true},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-06-08 15:36:57 +02:00
|
|
|
-- default mese post light or sands
|
2017-04-25 11:23:00 +02:00
|
|
|
if minetest.registered_nodes["default:mese_post_light"] then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"default:mese_post_light", "default:fence_wood"}, 5},
|
|
|
|
{"nod", "default:mese_post_light"},
|
|
|
|
{"dro", {"default:silver_sand", "default:sand", "default:desert_sand"}, 25},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- doors mod
|
|
|
|
if minetest.get_modpath("doors") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"doors:door_wood", "doors:door_steel", "doors:door_glass",
|
|
|
|
"doors:door_obsidian_glass", "doors:trapdoor", "doors:trapdoor_steel"}, 1},
|
|
|
|
{"dro", {"doors:gate_acacia_wood_closed", "doors:gate_aspen_wood_closed", "doors:gate_wood_closed",
|
|
|
|
"doors:gate_pine_wood_closed", "doors:gate_junglewood_closed"}, 5},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- screwdriver mod
|
|
|
|
if minetest.get_modpath("screwdriver") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"screwdriver:screwdriver"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- vessels mod
|
|
|
|
if minetest.get_modpath("vessels") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"vessels:shelf", "vessels:drinking_glass", "vessels:glass_bottle",
|
|
|
|
"vessels:steel_bottle", "vessels:glass_fragments"}, 5},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2016-11-12 12:19:52 +01:00
|
|
|
-- Farming mod (default)
|
2015-09-21 12:55:29 +02:00
|
|
|
if minetest.get_modpath("farming") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"farming:bread"}, 5},
|
2016-02-01 19:55:23 +01:00
|
|
|
{"sch", "instafarm", 0, true},
|
2015-11-05 12:08:17 +01:00
|
|
|
{"nod", "default:water_source", 1},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
|
2017-06-08 15:36:57 +02:00
|
|
|
end
|
2015-09-21 12:55:29 +02:00
|
|
|
|
|
|
|
-- Home Decor mod
|
|
|
|
if minetest.get_modpath("homedecor") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"nod", "homedecor:toilet", 0},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"nod", "homedecor:table", 0},
|
|
|
|
{"nod", "homedecor:chair", 0},
|
|
|
|
{"nod", "homedecor:table_lamp_off", 0},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-11-05 12:08:17 +01:00
|
|
|
-- Boats mod
|
|
|
|
if minetest.get_modpath("boats") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"boats:boat"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Carts mod
|
|
|
|
if minetest.get_modpath("carts")
|
|
|
|
or minetest.get_modpath("boost_cart") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"boats:boat"}, 1},
|
|
|
|
{"dro", {"default:rail"}, 10},
|
|
|
|
{"dro", {"carts:powerrail"}, 5},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-09-21 12:55:29 +02:00
|
|
|
-- 3D Armor mod
|
|
|
|
if minetest.get_modpath("3d_armor") then
|
|
|
|
lucky_block:add_blocks({
|
2016-09-30 13:57:23 +02:00
|
|
|
{"dro", {"3d_armor:boots_wood", "3d_armor:leggings_wood", "3d_armor:chestplate_wood", "3d_armor:helmet_wood"}, 1},
|
|
|
|
{"dro", {"3d_armor:boots_steel", "3d_armor:leggings_steel", "3d_armor:chestplate_steel", "3d_armor:helmet_steel"}, 1},
|
|
|
|
{"dro", {"3d_armor:boots_gold", "3d_armor:leggings_gold", "3d_armor:chestplate_gold", "3d_armor:helmet_gold"}, 1},
|
|
|
|
{"dro", {"3d_armor:boots_cactus", "3d_armor:leggings_cactus", "3d_armor:chestplate_cactus", "3d_armor:helmet_cactus"}, 1},
|
|
|
|
{"dro", {"3d_armor:boots_bronze", "3d_armor:leggings_bronze", "3d_armor:chestplate_bronze", "3d_armor:helmet_bronze"}, 1},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"lig"},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-11-24 18:46:02 +01:00
|
|
|
-- 3D Armor's Shields mod
|
|
|
|
if minetest.get_modpath("shields") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"shields:shield_wood"}, 1},
|
|
|
|
{"dro", {"shields:shield_steel"}, 1},
|
|
|
|
{"dro", {"shields:shield_gold"}, 1},
|
|
|
|
{"dro", {"shields:shield_cactus"}, 1},
|
|
|
|
{"dro", {"shields:shield_bronze"}, 1},
|
2017-04-25 11:23:00 +02:00
|
|
|
{"exp", 2},
|
2015-11-24 18:46:02 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-09-21 12:55:29 +02:00
|
|
|
-- Fire mod
|
|
|
|
if minetest.get_modpath("fire") then
|
|
|
|
lucky_block:add_blocks({
|
2017-04-25 11:23:00 +02:00
|
|
|
{"dro", {"fire:flint_and_steel", "default:flint"}, 1},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "fire:basic_flame", 1},
|
2016-09-30 13:57:23 +02:00
|
|
|
{"nod", "fire:permanent_flame", 1},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2016-02-19 21:37:43 +01:00
|
|
|
-- TNT mod
|
|
|
|
if minetest.get_modpath("tnt") then
|
|
|
|
local p = "tnt:tnt_burning"
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"tnt:gunpowder"}, 5, true},
|
2016-02-22 12:07:42 +01:00
|
|
|
{"fal", {p, p, p, p, p}, 1, true, 4},
|
2016-02-19 21:37:43 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-09-30 15:45:56 +02:00
|
|
|
-- More Ore's mod
|
|
|
|
if minetest.get_modpath("moreores") then
|
2015-09-21 12:55:29 +02:00
|
|
|
lucky_block:add_blocks({
|
2015-09-30 15:45:56 +02:00
|
|
|
{"nod", "moreores:tin_block", 0},
|
|
|
|
{"nod", "moreores:silver_block", 0},
|
|
|
|
{"fal", {"default:sand", "default:sand", "default:sand", "default:sand", "default:sand", "default:sand", "moreores:mithril_block"}, 0},
|
|
|
|
{"dro", {"moreores:pick_silver"}, 1},
|
|
|
|
{"dro", {"moreores:pick_mithril"}, 1},
|
|
|
|
{"tro", "moreores:silver_block"},
|
|
|
|
{"dro", {"moreores:shovel_silver"}, 1},
|
|
|
|
{"dro", {"moreores:shovel_mithril"}, 1},
|
|
|
|
{"dro", {"moreores:axe_silver"}, 1},
|
|
|
|
{"dro", {"moreores:axe_mithril"}, 1},
|
|
|
|
{"tro", "moreores:mithril_block"},
|
|
|
|
{"dro", {"moreores:hoe_silver"}, 1},
|
|
|
|
{"dro", {"moreores:hoe_mithril"}, 1},
|
|
|
|
{"lig"},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
2015-11-24 18:46:02 +01:00
|
|
|
|
|
|
|
if minetest.get_modpath("3d_armor") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"3d_armor:helmet_mithril"}, 1},
|
|
|
|
{"dro", {"3d_armor:chestplate_mithril"}, 1},
|
|
|
|
{"dro", {"3d_armor:leggings_mithril"}, 1},
|
|
|
|
{"dro", {"3d_armor:boots_mithril"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.get_modpath("shields") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"shields:shield_mithril"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-06-08 15:36:57 +02:00
|
|
|
end -- END moreores
|
2015-09-21 12:55:29 +02:00
|
|
|
|
2016-05-06 21:03:08 +02:00
|
|
|
-- Bows mod
|
|
|
|
if minetest.get_modpath("bows") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"bows:bow_wood"}, 1},
|
|
|
|
{"dro", {"bows:bow_steel"}, 1},
|
|
|
|
{"dro", {"bows:bow_bronze"}, 1},
|
|
|
|
{"dro", {"bows:arrow"}, 5},
|
|
|
|
{"dro", {"bows:arrow_steel"}, 5},
|
|
|
|
{"dro", {"bows:arrow_mese"}, 5},
|
|
|
|
{"dro", {"bows:arrow_diamond"}, 5},
|
|
|
|
})
|
|
|
|
end
|
2017-06-08 15:36:57 +02:00
|
|
|
|
|
|
|
-- Bags mod
|
|
|
|
if minetest.get_modpath("bags") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"bags:small", "bags:medium", "bags:large", "bags:trolley"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Bonemeal mod
|
|
|
|
if minetest.get_modpath("bonemeal") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"bonemeal:mulch", "bonemeal:bonemeal", "bonemeal:fertiliser"}, 8},
|
|
|
|
})
|
|
|
|
end
|