2015-09-21 12:55:29 +02:00
|
|
|
|
2017-08-28 12:22:18 +02:00
|
|
|
-- Load support for intllib.
|
|
|
|
local MP = minetest.get_modpath(minetest.get_current_modname())
|
2018-10-05 19:39:29 +02:00
|
|
|
local S, NS = dofile(MP .. "/intllib.lua")
|
2017-08-28 12:22:18 +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}},
|
2017-07-23 16:37:52 +02:00
|
|
|
{"largecactus", dpath .. "large_cactus.mts", {x = 2, y = 0, z = 0}},
|
|
|
|
{"defaultbush", dpath .. "bush.mts", {x = 1, y = 1, z = 1}},
|
|
|
|
{"acaciabush", dpath .. "acacia_bush.mts", {x = 1, y = 1, z = 1}},
|
2016-02-07 13:20:21 +01:00
|
|
|
})
|
|
|
|
|
2015-09-21 12:55:29 +02:00
|
|
|
-- Default blocks
|
|
|
|
lucky_block:add_blocks({
|
2018-10-17 10:57:37 +02:00
|
|
|
{"lig"},
|
|
|
|
{"fal", {"default:wood", "default:gravel", "default:sand",
|
2018-10-17 13:12:25 +02:00
|
|
|
"default:desert_sand", "default:stone", "default:dirt",
|
|
|
|
"default:goldblock"}, 0},
|
2015-12-11 13:48:18 +01:00
|
|
|
{"sch", "watertrap", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"tel"},
|
|
|
|
{"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},
|
2018-10-16 19:05:19 +02:00
|
|
|
{name = "default:coal_lump", max = 3} } },
|
2015-12-11 13:48:18 +01:00
|
|
|
{"sch", "sandtrap", 1, true},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "defpinetree", 0, false},
|
2016-02-01 19:55:23 +01:00
|
|
|
{"sch", "lavatrap", 1, true},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:mese_crystal_fragment"}, 15},
|
|
|
|
{"dro", {"default:mese_crystal"}, 10},
|
|
|
|
{"dro", {"default:mese"}, 1},
|
2017-07-09 10:40:54 +02:00
|
|
|
{"exp", 2},
|
2017-07-23 16:37:52 +02:00
|
|
|
{"sch", "acaciabush", 0, false},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "default:diamondblock", 0},
|
|
|
|
{"nod", "default:steelblock", 0},
|
|
|
|
{"nod", "default:dirt", 0},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "default:dirt", max = 15},
|
|
|
|
{name = "default:dirt_with_dry_grass", max = 15},
|
|
|
|
{name = "default:dirt_with_rainforest_litter", max = 15},
|
|
|
|
{name = "default:dirt_with_grass", max = 15},
|
|
|
|
{name = "default:dirt_with_snow", max = 15},
|
|
|
|
}},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"dro", {"dye:"}, 10, true},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:sword_steel"}},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "jungletree", 0, false},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"sch", "sandtrap", 1, true, {{"default:sand", "default:silver_sand"}} },
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:pick_steel"}},
|
|
|
|
{"dro", {"default:shovel_steel"}},
|
2018-10-17 10:57:37 +02:00
|
|
|
{"exp"},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"dro", {"default:coal_lump"}, 3},
|
2017-07-23 16:37:52 +02:00
|
|
|
{"sch", "defaultbush", 0, false},
|
2017-07-14 16:15:05 +02:00
|
|
|
{"tro", "default:mese", "tnt_blast", true},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "acaciatree", 0, false},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:axe_steel"}},
|
|
|
|
{"dro", {"default:sword_bronze"}},
|
2017-04-25 11:23:00 +02:00
|
|
|
{"exp", 3},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "default:acacia_sapling", max = 10},
|
|
|
|
{name = "default:aspen_sapling", max = 10},
|
|
|
|
{name = "default:pine_sapling", max = 10},
|
|
|
|
{name = "default:sapling", max = 10},
|
|
|
|
{name = "default:junglesapling", max = 10},
|
|
|
|
{name = "default:acacia_bush_sapling", max = 5},
|
|
|
|
{name = "default:bush_sapling", max = 5},
|
|
|
|
}},
|
2015-12-11 13:48:18 +01:00
|
|
|
{"sch", "platform", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "default:wood", 0},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:pick_bronze"}},
|
2016-02-07 13:20:21 +01:00
|
|
|
{"sch", "aspentree", 0, false},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:shovel_bronze"}},
|
2015-09-21 12:55:29 +02:00
|
|
|
{"nod", "default:gravel", 0},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"sch", "sandtrap", 1, true, {{"default:sand", "default:gravel"}} },
|
2017-07-23 16:37:52 +02:00
|
|
|
{"sch", "largecactus", 0, false},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:axe_bronze"}},
|
2017-04-25 11:23:00 +02:00
|
|
|
{"dro", {"default:bookshelf", "default:book", "default:paper"}, 5},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"default:fence_wood"}, 10},
|
|
|
|
{"dro", {"default:fence_acacia_wood"}, 10},
|
|
|
|
{"dro", {"default:fence_aspen_wood"}, 10},
|
|
|
|
{"dro", {"default:fence_junglewood"}, 10},
|
|
|
|
{"dro", {"default:fence_pine_wood"}, 10},
|
2017-07-23 16:37:52 +02:00
|
|
|
{"sch", "obsidiantrap", 1, true},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"sch", "sandtrap", 1, true, {{"default:sand", "default:desert_sand"}} },
|
2018-10-16 19:05:19 +02:00
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "default:acacia_wood", max = 10},
|
|
|
|
{name = "default:aspen_wood", max = 10},
|
|
|
|
{name = "default:pine_wood", max = 10},
|
|
|
|
{name = "default:wood", max = 10},
|
|
|
|
{name = "default:junglewood", max = 10},
|
|
|
|
}},
|
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "default:acacia_tree", max = 10},
|
|
|
|
{name = "default:aspen_tree", max = 10},
|
|
|
|
{name = "default:pine_tree", max = 10},
|
|
|
|
{name = "default:tree", max = 10},
|
|
|
|
{name = "default:jungletree", max = 10},
|
|
|
|
}},
|
2018-10-17 10:57:37 +02:00
|
|
|
{"dro", {"default:coral_brown"}, 5},
|
|
|
|
{"dro", {"default:coral_orange"}, 5},
|
|
|
|
{"dro", {"default:coral_skeleton"}, 5},
|
|
|
|
{"sch", "corals", 0, true},
|
|
|
|
{"dro", {"default:mese_post_light"}, 5},
|
|
|
|
{"dro", {"default:fence_wood"}, 5},
|
|
|
|
{"nod", "default:mese_post_light"},
|
|
|
|
{"dro", {"default:silver_sand"}, 20},
|
|
|
|
{"dro", {"default:sand"}, 20},
|
|
|
|
{"dro", {"default:desert_sand"}, 20},
|
|
|
|
{"dro", {"default:gravel"}, 15},
|
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "default:silver_sand", max = 20},
|
|
|
|
{name = "default:silver_sandstone", max = 20},
|
|
|
|
{name = "default:desert_sand", max = 20},
|
|
|
|
{name = "default:silver_sandstone", max = 20},
|
|
|
|
{name = "default:sand", max = 20},
|
|
|
|
{name = "default:sandstone", max = 20},
|
|
|
|
{name = "default:gravel", max = 20},
|
|
|
|
}},
|
|
|
|
})
|
|
|
|
|
|
|
|
local green = minetest.get_color_escape_sequence("#1eff00")
|
|
|
|
|
|
|
|
-- custom function (punches player with 5 damage)
|
|
|
|
local function punchy(pos, player)
|
|
|
|
|
|
|
|
player:punch(player, 1.0, {
|
|
|
|
full_punch_interval = 1.0,
|
|
|
|
damage_groups = {fleshy = 5}
|
|
|
|
}, nil)
|
|
|
|
|
|
|
|
minetest.sound_play("player_damage", {pos = pos, gain = 1.0})
|
|
|
|
|
|
|
|
minetest.chat_send_player(player:get_player_name(),
|
|
|
|
green .. S("Stop hitting yourself!"))
|
|
|
|
end
|
|
|
|
|
|
|
|
-- custom function (pint sized player)
|
|
|
|
local function pint(pos, player)
|
|
|
|
|
|
|
|
player:set_properties({visual_size = {x = 0.5, y = 0.5}})
|
|
|
|
|
|
|
|
minetest.chat_send_player(player:get_player_name(),
|
|
|
|
green .. S("Pint Sized Player!"))
|
|
|
|
|
|
|
|
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0})
|
|
|
|
|
|
|
|
minetest.after (180, function(player, pos) -- 3 minutes
|
|
|
|
|
|
|
|
if player and player:is_player() then
|
|
|
|
|
|
|
|
player:set_properties({visual_size = {x = 1.0, y = 1.0}})
|
|
|
|
|
|
|
|
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0})
|
|
|
|
end
|
|
|
|
end, player)
|
|
|
|
end
|
|
|
|
|
|
|
|
-- custom function (drop player inventory and replace with dry shrubs)
|
|
|
|
local function bushy(pos, player)
|
|
|
|
|
|
|
|
local player_inv = player:get_inventory()
|
|
|
|
|
|
|
|
pos = player:get_pos() or pos
|
|
|
|
|
|
|
|
for i = 1, player_inv:get_size("main") do
|
|
|
|
|
|
|
|
local obj = minetest.add_item(pos, player_inv:get_stack("main", i))
|
|
|
|
|
|
|
|
if obj then
|
|
|
|
|
|
|
|
obj:setvelocity({
|
|
|
|
x = math.random(-10, 10) / 9,
|
|
|
|
y = 5,
|
|
|
|
z = math.random(-10, 10) / 9,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
player_inv:set_stack("main", i, "default:dry_shrub")
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.chat_send_player(player:get_player_name(),
|
|
|
|
green .. S("Dry shrub takeover!"))
|
|
|
|
end
|
|
|
|
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"cus", pint},
|
|
|
|
{"cus", bushy},
|
|
|
|
{"cus", punchy},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
|
2018-10-17 10:57:37 +02:00
|
|
|
-- wool mod
|
|
|
|
if minetest.get_modpath("wool") then
|
2017-04-25 11:23:00 +02:00
|
|
|
lucky_block:add_blocks({
|
2018-10-17 10:57:37 +02:00
|
|
|
{"dro", {"wool:"}, 10, true},
|
2017-04-25 11:23:00 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2018-10-16 19:26:25 +02:00
|
|
|
-- extra doors mod
|
|
|
|
if minetest.get_modpath("extra_doors") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"default:steel_rod"}, 10},
|
|
|
|
{"dro", {"extra_doors:door_woodpanel1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_woodglass1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_woodglass2"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_japanese"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_french"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_cottage1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_cottage2"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_barn1"}, 1},
|
|
|
|
{"lig"},
|
|
|
|
{"dro", {"extra_doors:door_door_barn2"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_castle1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_castle2"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_mansion1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_mansion2"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_dungeon1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_dungeon2"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_steelpanel1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_steelglass1"}, 1},
|
|
|
|
{"dro", {"extra_doors:door_door_steelglass2"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-07-23 16:37:52 +02:00
|
|
|
-- Flowers mod
|
|
|
|
if minetest.get_modpath("flowers") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"nod", "flowers:rose", 0},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"flowers:mushroom_red"}, 5},
|
|
|
|
{"dro", {"flowers:mushroom_brown"}, 5},
|
2017-07-23 16:37:52 +02:00
|
|
|
{"dro", {"flowers:rose", "flowers:tulip", "flowers:dandelion_yellow",
|
|
|
|
"flowers:geranium", "flowers:viola", "flowers:dandelion_white"}, 12},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "flowers:geranium", max = 15},
|
|
|
|
{name = "flowers:viola", max = 15},
|
|
|
|
{name = "flowers:dandelion_white", max = 15},
|
|
|
|
{name = "flowers:dandelion_yellow", max = 15},
|
|
|
|
{name = "flowers:tulip", max = 15},
|
|
|
|
{name = "flowers:rose", max = 15},
|
|
|
|
{name = "flowers:mushroom_brown", max = 10},
|
|
|
|
{name = "flowers:mushroom_red", max = 10},
|
|
|
|
{name = "flowers:waterlily", max = 10},
|
|
|
|
}},
|
2017-07-23 16:37:52 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Doors mod
|
2017-04-25 11:23:00 +02:00
|
|
|
if minetest.get_modpath("doors") then
|
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"doors:door_wood"}},
|
|
|
|
{"dro", {"doors:door_steel"}},
|
|
|
|
{"dro", {"doors:door_glass"}},
|
|
|
|
{"dro", {"doors:door_obsidian_glass"}},
|
|
|
|
{"dro", {"doors:trapdoor"}},
|
|
|
|
{"dro", {"doors:trapdoor_steel"}},
|
|
|
|
{"dro", {"doors:gate_acacia_wood_closed"}},
|
|
|
|
{"dro", {"doors:gate_aspen_wood_closed"}},
|
|
|
|
{"dro", {"doors:gate_wood_closed"}},
|
|
|
|
{"dro", {"doors:gate_pine_wood_closed"}},
|
|
|
|
{"dro", {"doors:gate_junglewood_closed"}},
|
2017-04-25 11:23:00 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-07-23 16:37:52 +02:00
|
|
|
-- Screwdriver mod
|
2017-04-25 11:23:00 +02:00
|
|
|
if minetest.get_modpath("screwdriver") then
|
2017-07-23 16:37:52 +02:00
|
|
|
|
2017-07-24 13:23:23 +02:00
|
|
|
if screwdriver and screwdriver.handler then
|
2017-07-23 16:37:52 +02:00
|
|
|
minetest.register_tool(":screwdriver:screwdriver_magenta", {
|
2017-08-28 12:22:18 +02:00
|
|
|
description = S("Super Mega Magenta Ultra Screwdriver 2500\n(left-click to rotate face, right-click to rotates axis)"),
|
2017-07-23 16:37:52 +02:00
|
|
|
inventory_image = "screwdriver.png^[colorize:#ff009970",
|
2017-07-24 13:54:17 +02:00
|
|
|
groups = {not_in_creative_inventory = 1},
|
2017-07-23 16:37:52 +02:00
|
|
|
|
|
|
|
on_use = function(itemstack, user, pointed_thing)
|
2017-07-24 13:23:23 +02:00
|
|
|
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_FACE, 2500)
|
2017-07-23 16:37:52 +02:00
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
|
|
|
|
on_place = function(itemstack, user, pointed_thing)
|
2017-07-24 13:23:23 +02:00
|
|
|
screwdriver.handler(itemstack, user, pointed_thing, screwdriver.ROTATE_AXIS, 2500)
|
2017-07-23 16:37:52 +02:00
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
})
|
2017-07-24 13:23:23 +02:00
|
|
|
end
|
2017-07-23 16:37:52 +02:00
|
|
|
|
2017-04-25 11:23:00 +02:00
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"screwdriver:screwdriver"}},
|
|
|
|
{"dro", {"screwdriver:screwdriver_magenta"}},
|
2017-04-25 11:23:00 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-07-23 16:37:52 +02:00
|
|
|
-- Vessels mod
|
2017-04-25 11:23:00 +02:00
|
|
|
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},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"nod", "vessels:drinking_glass", 0},
|
|
|
|
{"nod", "vessels:glass_bottle", 0},
|
|
|
|
{"nod", "vessels:steel_bottle", 0},
|
2017-04-25 11:23:00 +02:00
|
|
|
})
|
|
|
|
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},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"homedecor:plastic_sheeting", "homedecor:plastic_base"}, 15},
|
|
|
|
{"dro", {"homedecor:roof_tile_terracotta"}, 20},
|
|
|
|
{"dro", {"homedecor:shutter_oak"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_black"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_dark_grey"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_grey"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_white"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_mahogany"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_yellow"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_forest_green"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_light_blue"}, 5},
|
|
|
|
{"dro", {"homedecor:shutter_violet"}, 5},
|
|
|
|
{"dro", {"homedecor:table_legs_wrought_iron", "homedecor:utility_table_legs"}, 5},
|
|
|
|
{"dro", {"homedecor:pole_wrought_iron"}, 10},
|
|
|
|
{"dro", {"homedecor:fence_picket_white"}, 20},
|
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({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"boats:boat"}},
|
2015-11-05 12:08:17 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-07-23 16:37:52 +02:00
|
|
|
-- Beds mod
|
|
|
|
if minetest.get_modpath("beds") then
|
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"beds:bed"}},
|
|
|
|
{"dro", {"beds:fancy_bed"}},
|
2017-07-23 16:37:52 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Walls mod
|
|
|
|
if minetest.get_modpath("walls") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"dro", {"walls:cobble"}, 10},
|
|
|
|
{"dro", {"walls:mossycobble"}, 10},
|
|
|
|
{"dro", {"walls:desertcobble"}, 10},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2015-11-05 12:08:17 +01:00
|
|
|
-- Carts mod
|
|
|
|
if minetest.get_modpath("carts")
|
|
|
|
or minetest.get_modpath("boost_cart") then
|
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"carts:cart"}},
|
2015-11-05 12:08:17 +01:00
|
|
|
{"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({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"3d_armor:boots_wood"}},
|
|
|
|
{"dro", {"3d_armor:leggings_wood"}},
|
|
|
|
{"dro", {"3d_armor:chestplate_wood"}},
|
|
|
|
{"dro", {"3d_armor:helmet_wood"}},
|
|
|
|
{"tel"},
|
|
|
|
{"dro", {"3d_armor:boots_steel"}},
|
|
|
|
{"dro", {"3d_armor:leggings_steel"}},
|
|
|
|
{"dro", {"3d_armor:chestplate_steel"}},
|
|
|
|
{"dro", {"3d_armor:helmet_steel"}},
|
|
|
|
{"dro", {"3d_armor:boots_gold"}},
|
|
|
|
{"dro", {"3d_armor:leggings_gold"}},
|
|
|
|
{"dro", {"3d_armor:chestplate_gold"}},
|
|
|
|
{"exp"},
|
|
|
|
{"dro", {"3d_armor:helmet_gold"}},
|
|
|
|
{"dro", {"3d_armor:boots_cactus"}},
|
|
|
|
{"dro", {"3d_armor:leggings_cactus"}},
|
|
|
|
{"dro", {"3d_armor:chestplate_cactus"}},
|
|
|
|
{"dro", {"3d_armor:helmet_cactus"}},
|
|
|
|
{"dro", {"3d_armor:boots_bronze"}},
|
|
|
|
{"dro", {"3d_armor:leggings_bronze"}},
|
|
|
|
{"dro", {"3d_armor:chestplate_bronze"}},
|
|
|
|
{"dro", {"3d_armor:helmet_bronze"}},
|
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({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"shields:shield_wood"}},
|
|
|
|
{"dro", {"shields:shield_steel"}},
|
|
|
|
{"dro", {"shields:shield_gold"}},
|
|
|
|
{"dro", {"shields:shield_cactus"}},
|
|
|
|
{"dro", {"shields:shield_bronze"}},
|
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-10-12 12:45:29 +02:00
|
|
|
{"dro", {"fire:flint_and_steel"}},
|
|
|
|
{"dro", {"default:flint"}, 5},
|
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},
|
2017-07-23 16:37:52 +02:00
|
|
|
{"sch", "firetrap", 1, true},
|
2015-09-21 12:55:29 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2018-09-07 13:40:07 +02:00
|
|
|
-- Caverealms
|
|
|
|
if minetest.get_modpath("caverealms") then
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"sch", "sandtrap", 1, true, {{"default:sand", "caverealms:coal_dust"}} },
|
|
|
|
{"sch", "obsidiantrap", 1, true, {{"default:obsidian", "caverealms:glow_obsidian_brick_2"}} },
|
|
|
|
{"flo", 5, {"caverealms:stone_with_moss"}, 2},
|
|
|
|
{"flo", 5, {"caverealms:stone_with_lichen"}, 2},
|
|
|
|
{"flo", 5, {"caverealms:stone_with_algae"}, 2},
|
|
|
|
})
|
|
|
|
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({
|
2018-09-07 13:40:07 +02:00
|
|
|
{"dro", {"tnt:gunpowder"}, 5},
|
2016-02-22 12:07:42 +01:00
|
|
|
{"fal", {p, p, p, p, p}, 1, true, 4},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"nod", "tnt:tnt_burning", 0},
|
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},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"fal", {"default:sand", "default:sand", "default:sand", "default:sand",
|
|
|
|
"default:sand", "default:sand", "moreores:mithril_block"}, 0},
|
|
|
|
{"dro", {"moreores:pick_silver"}},
|
|
|
|
{"dro", {"moreores:pick_mithril"}},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"tro", "moreores:silver_block"},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"moreores:shovel_silver"}},
|
|
|
|
{"dro", {"moreores:shovel_mithril"}},
|
|
|
|
{"dro", {"moreores:axe_silver"}},
|
|
|
|
{"dro", {"moreores:axe_mithril"}},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"tro", "moreores:mithril_block"},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"moreores:hoe_silver"}},
|
|
|
|
{"dro", {"moreores:hoe_mithril"}},
|
2015-09-30 15:45:56 +02:00
|
|
|
{"lig"},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = "moreores:silver_lump", max = 10},
|
|
|
|
{name = "moreores:mithril_lump", max = 10},
|
|
|
|
{name = "default:copper_lump", max = 10},
|
|
|
|
{name = "default:gold_lump", max = 10},
|
|
|
|
{name = "default:iron_lump", max = 10},
|
|
|
|
{name = "default:tin_lump", max = 10},
|
|
|
|
{name = "default:coal_lump", max = 10},
|
|
|
|
{name = "default:clay_lump", max = 10},
|
|
|
|
}},
|
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({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"3d_armor:helmet_mithril"}},
|
|
|
|
{"dro", {"3d_armor:chestplate_mithril"}},
|
|
|
|
{"dro", {"3d_armor:leggings_mithril"}},
|
|
|
|
{"dro", {"3d_armor:boots_mithril"}},
|
2015-11-24 18:46:02 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
if minetest.get_modpath("shields") then
|
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"shields:shield_mithril"}},
|
2015-11-24 18:46:02 +01:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-06-08 15:36:57 +02:00
|
|
|
end -- END moreores
|
2015-09-21 12:55:29 +02:00
|
|
|
|
2017-08-13 21:13:57 +02:00
|
|
|
-- Moreblocks mod
|
|
|
|
if minetest.get_modpath("moreblocks") then
|
|
|
|
local p = "moreblocks:"
|
|
|
|
local lav = {name = "default:lava_source"}
|
|
|
|
local air = {name = "air"}
|
|
|
|
local trs = {name = p.."trap_stone"}
|
|
|
|
local trg = {name = p.."trap_glow_glass"}
|
|
|
|
local trapstone_trap = {
|
|
|
|
size = {x = 3, y = 6, z = 3},
|
|
|
|
data = {
|
|
|
|
lav, lav, lav, air, air, air, air, air, air,
|
|
|
|
air, air, air, air, air, air, trs, trs, trs,
|
|
|
|
lav, lav, lav, air, air, air, air, air, air,
|
|
|
|
air, air, air, air, trg, air, trs, air, trs,
|
|
|
|
lav, lav, lav, air, air, air, air, air, air,
|
|
|
|
air, air, air, air, air, air, trs, trs, trs,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
lucky_block:add_schematics({
|
|
|
|
{"trapstonetrap", trapstone_trap, {x = 1, y = 6, z = 1}},
|
|
|
|
})
|
|
|
|
|
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."wood_tile"}, 10},
|
|
|
|
{"dro", {p.."wood_tile_center"}, 10},
|
|
|
|
{"dro", {p.."wood_tile_full"}, 10},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"dro", {p.."wood_tile_offset"}, 10},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"dro", {p.."circle_stone_bricks"}, 20},
|
|
|
|
{"dro", {p.."grey_bricks"}, 20},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."stone_tile"}, 10},
|
|
|
|
{"dro", {p.."split_stone_tile"}, 10},
|
|
|
|
{"dro", {p.."split_stone_tile_alt"}, 10},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"flo", 5, {"moreblocks:stone_tile", "moreblocks:split_stone_tile"}, 2},
|
|
|
|
{"dro", {p.."tar", p.."cobble_compressed"}, 10},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."cactus_brick"}, 10},
|
|
|
|
{"dro", {p.."cactus_checker"}, 10},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"nod", {p.."empty_bookshelf"}, 0},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."coal_stone"}, 10},
|
|
|
|
{"dro", {p.."coal_checker"}, 10},
|
|
|
|
{"dro", {p.."coal_stone_bricks"}, 10},
|
|
|
|
{"dro", {p.."coal_glass"}, 10},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"exp", 3},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."iron_stone"}, 10},
|
|
|
|
{"dro", {p.."iron_checker"}, 10},
|
|
|
|
{"dro", {p.."iron_stone_bricks"}, 10},
|
|
|
|
{"dro", {p.."iron_glass"}, 10},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"dro", {p.."trap_obsidian"}, 10},
|
|
|
|
{"dro", {p.."trap_sandstone"}, 10},
|
|
|
|
{"dro", {p.."trap_desert_stone"}, 10},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."trap_stone"}, 10},
|
|
|
|
{"dro", {p.."trap_glass"}, 10},
|
|
|
|
{"dro", {p.."trap_glow_glass"}, 10},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"dro", {p.."trap_obsidian_glass"}, 10},
|
|
|
|
{"lig"},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"sch", "trapstonetrap", 0, true},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."all_faces_tree"}, 10},
|
|
|
|
{"dro", {p.."all_faces_jungle_tree"}, 10},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"dro", {p.."all_faces_pine_tree"}, 10},
|
|
|
|
{"dro", {p.."all_faces_acacia_tree"}, 10},
|
|
|
|
{"dro", {p.."all_faces_aspen_tree"}, 10},
|
|
|
|
{"flo", 3, {p.."all_faces_acacia_tree"}, 1},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."plankstone"}, 10},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"fal", {p.."all_faces_tree", p.."all_faces_tree", p.."all_faces_tree", p.."all_faces_tree", p.."all_faces_tree"}, 0},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {p.."glow_glass"}, 10},
|
|
|
|
{"dro", {p.."super_glow_glass"}, 10},
|
|
|
|
{"dro", {p.."clean_glass"}, 10},
|
2017-08-13 21:13:57 +02:00
|
|
|
{"nod", "default:chest", 0, {
|
|
|
|
{name = p.."rope", max = 10},
|
|
|
|
{name = p.."sweeper", max = 1},
|
|
|
|
{name = p.."circular_saw", max = 1},
|
|
|
|
{name = p.."grey_bricks", max = 10},
|
|
|
|
{name = p.."tar", max = 3}}},
|
|
|
|
{"flo", 3, {"moreblocks:copperpatina"}, 1},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2017-06-08 15:36:57 +02:00
|
|
|
-- Bags mod
|
|
|
|
if minetest.get_modpath("bags") then
|
2018-10-17 13:12:25 +02:00
|
|
|
minetest.register_craftitem(":bags:spar", {
|
|
|
|
description = "Spar Bag",
|
|
|
|
inventory_image = "bags_spar.png",
|
|
|
|
groups = {bagslots = 2, flammable = 2},
|
|
|
|
})
|
2017-06-08 15:36:57 +02:00
|
|
|
lucky_block:add_blocks({
|
2018-10-17 13:12:25 +02:00
|
|
|
{"dro", {"bags:spar"}},
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"bags:small"}},
|
|
|
|
{"dro", {"bags:medium"}},
|
|
|
|
{"dro", {"bags:large"}},
|
|
|
|
{"dro", {"bags:trolley"}},
|
2017-06-08 15:36:57 +02:00
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2018-09-07 13:40:07 +02:00
|
|
|
-- Additional Wishing Well Styles
|
|
|
|
lucky_block:add_blocks({
|
2018-10-17 10:57:37 +02:00
|
|
|
{"sch", "wishingwell", 0, true},
|
2018-09-07 13:40:07 +02:00
|
|
|
{"sch", "wishingwell", 0, true, {
|
|
|
|
{"default:stonebrick", "default:silver_sandstone_brick"},
|
|
|
|
{"stairs:slab_stonebrick", "stairs:slab_silver_sandstone_brick"},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"default:fence_wood", "default:fence_aspen_wood"},
|
|
|
|
{"default:steelblock", "default:tinblock"},
|
2018-09-07 13:40:07 +02:00
|
|
|
} },
|
|
|
|
{"sch", "wishingwell", 0, true, {
|
|
|
|
{"default:stonebrick", "default:sandstonebrick"},
|
|
|
|
{"stairs:slab_stonebrick", "stairs:slab_sandstonebrick"},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"default:fence_wood", "default:fence_junglewood"},
|
|
|
|
{"default:steelblock", "default:goldblock"},
|
2018-09-07 13:40:07 +02:00
|
|
|
} },
|
|
|
|
{"sch", "wishingwell", 0, true, {
|
|
|
|
{"default:stonebrick", "default:desert_stonebrick"},
|
|
|
|
{"stairs:slab_stonebrick", "stairs:slab_desert_stonebrick"},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"default:fence_wood", "default:fence_acacia_wood"},
|
|
|
|
{"default:steelblock", "default:copperblock"},
|
2018-09-07 13:40:07 +02:00
|
|
|
} },
|
|
|
|
{"sch", "wishingwell", 0, true, {
|
|
|
|
{"default:stonebrick", "default:desert_sandstone_brick"},
|
|
|
|
{"stairs:slab_stonebrick", "stairs:slab_desert_sandstone_brick"},
|
2018-10-16 19:05:19 +02:00
|
|
|
{"default:fence_wood", "default:fence_pine_wood"},
|
|
|
|
{"default:steelblock", "default:bronzeblock"},
|
2018-09-07 13:40:07 +02:00
|
|
|
} },
|
|
|
|
})
|
|
|
|
|
2017-07-24 13:54:17 +02:00
|
|
|
-- Special items
|
|
|
|
minetest.register_node("lucky_block:void_mirror", {
|
2017-08-28 12:22:18 +02:00
|
|
|
description = S("Void Mirror (Place to see through solid walls during daytime)"),
|
2017-07-24 13:54:17 +02:00
|
|
|
drawtype = "normal",
|
|
|
|
tiles = {"default_obsidian_glass.png^[brighten"},
|
|
|
|
use_texture_alpha = true,
|
|
|
|
groups = {snappy = 3, not_in_creative_inventory = 1},
|
|
|
|
sounds = default.node_sound_glass_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
lucky_block:add_blocks({
|
2017-10-12 12:45:29 +02:00
|
|
|
{"dro", {"lucky_block:void_mirror"}},
|
2017-07-24 13:54:17 +02:00
|
|
|
})
|
2018-08-19 14:35:59 +02:00
|
|
|
|
|
|
|
-- Troll
|
|
|
|
local green = minetest.get_color_escape_sequence("#1eff00")
|
|
|
|
|
|
|
|
local function fake_diamonds(pos, player)
|
|
|
|
|
|
|
|
for n = 1, 25 do
|
|
|
|
|
|
|
|
minetest.add_particle({
|
|
|
|
time = 15,
|
|
|
|
pos = {
|
|
|
|
x = pos.x + math.random(-20, 20) / 10,
|
|
|
|
y = pos.y,
|
|
|
|
z = pos.z + math.random(-20, 20) / 10,
|
|
|
|
},
|
|
|
|
velocity = {x = 0, y = 2, z = 0},
|
|
|
|
acceleration = {x = 0, y = -10, z = 0},
|
|
|
|
expirationtime = 4,
|
|
|
|
maxsize = 4,
|
|
|
|
texture = "default_diamond.png",
|
|
|
|
glow = 2,
|
|
|
|
size = 5,
|
|
|
|
collisiondetection = true,
|
|
|
|
vertical = true,
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.chat_send_player(player:get_player_name(),
|
|
|
|
green .. S("Wow! So many faux diamonds!"))
|
|
|
|
end
|
|
|
|
|
|
|
|
lucky_block:add_blocks({
|
|
|
|
{"cus", fake_diamonds},
|
|
|
|
})
|