forked from thunderdog1138/star_wars
Upload files to 'mods/ethereal'
This commit is contained in:
parent
d3e9876630
commit
b48f28a77c
|
@ -0,0 +1,120 @@
|
|||
--[[
|
||||
|
||||
Minetest Ethereal Mod
|
||||
|
||||
Created by ChinChow
|
||||
|
||||
Updated by TenPlus1
|
||||
|
||||
]]
|
||||
|
||||
-- DO NOT change settings below, use the settings.conf file instead
|
||||
ethereal = {
|
||||
|
||||
version = "1.27",
|
||||
leaftype = 0, -- 0 for 2D plantlike, 1 for 3D allfaces
|
||||
leafwalk = false, -- true for walkable leaves, false to fall through
|
||||
cavedirt = true, -- caves chop through dirt when true
|
||||
torchdrop = true, -- torches drop when touching water
|
||||
papyruswalk = true, -- papyrus can be walked on
|
||||
lilywalk = true, -- waterlilies can be walked on
|
||||
xcraft = true, -- allow cheat crafts for cobble->gravel->dirt->sand, ice->snow, dry dirt->desert sand
|
||||
glacier = 1, -- Ice glaciers with snow
|
||||
bamboo = 1, -- Bamboo with sprouts
|
||||
mesa = 1, -- Mesa red and orange clay with giant redwood
|
||||
alpine = 1, -- Snowy grass
|
||||
healing = 1, -- Snowy peaks with healing trees
|
||||
snowy = 1, -- Cold grass with pine trees and snow spots
|
||||
frost = 1, -- Blue dirt with blue/pink frost trees
|
||||
grassy = 1, -- Green grass with flowers and trees
|
||||
caves = 1, -- Desert stone ares with huge caverns underneath
|
||||
grayness = 1, -- Grey grass with willow trees
|
||||
grassytwo = 1, -- Sparse trees with old trees and flowers
|
||||
prairie = 1, -- Flowery grass with many plants and flowers
|
||||
jumble = 1, -- Green grass with trees and jungle grass
|
||||
junglee = 1, -- Jungle grass with tall jungle trees
|
||||
desert = 1, -- Desert sand with cactus
|
||||
grove = 1, -- Banana groves and ferns
|
||||
mushroom = 1, -- Purple grass with giant mushrooms
|
||||
sandstone = 1, -- Sandstone with smaller cactus
|
||||
quicksand = 1, -- Quicksand banks
|
||||
plains = 1, -- Dry dirt with scorched trees
|
||||
savanna = 1, -- Dry yellow grass with acacia tree's
|
||||
fiery = 1, -- Red grass with lava craters
|
||||
sandclay = 1, -- Sand areas with clay underneath
|
||||
swamp = 1, -- Swamp areas with vines on tree's, mushrooms, lilly's and clay sand
|
||||
sealife = 1, -- Enable coral and seaweed
|
||||
reefs = 1, -- Enable new 0.4.15 coral reefs in default
|
||||
sakura = 1, -- Enable sakura biome with trees
|
||||
tundra = 1, -- Enable tuntra biome with permafrost
|
||||
}
|
||||
|
||||
local path = minetest.get_modpath("ethereal")
|
||||
|
||||
-- Load new settings if found
|
||||
local input = io.open(path.."/settings.conf", "r")
|
||||
if input then
|
||||
dofile(path .. "/settings.conf")
|
||||
input:close()
|
||||
input = nil
|
||||
end
|
||||
|
||||
-- Intllib
|
||||
local S
|
||||
if minetest.global_exists("intllib") then
|
||||
if intllib.make_gettext_pair then
|
||||
-- New method using gettext.
|
||||
S = intllib.make_gettext_pair()
|
||||
else
|
||||
-- Old method using text files.
|
||||
S = intllib.Getter()
|
||||
end
|
||||
else
|
||||
S = function(s) return s end
|
||||
end
|
||||
ethereal.intllib = S
|
||||
|
||||
-- Falling node function
|
||||
ethereal.check_falling = minetest.check_for_falling or nodeupdate
|
||||
|
||||
-- creative check
|
||||
local creative_mode_cache = minetest.settings:get_bool("creative_mode")
|
||||
function ethereal.check_creative(name)
|
||||
return creative_mode_cache or minetest.check_player_privs(name, {creative = true})
|
||||
end
|
||||
|
||||
dofile(path .. "/plantlife.lua")
|
||||
dofile(path .. "/mushroom.lua")
|
||||
dofile(path .. "/onion.lua")
|
||||
dofile(path .. "/crystal.lua")
|
||||
dofile(path .. "/water.lua")
|
||||
dofile(path .. "/dirt.lua")
|
||||
dofile(path .. "/food.lua")
|
||||
dofile(path .. "/wood.lua")
|
||||
dofile(path .. "/leaves.lua")
|
||||
dofile(path .. "/sapling.lua")
|
||||
dofile(path .. "/strawberry.lua")
|
||||
dofile(path .. "/fishing.lua")
|
||||
dofile(path .. "/extra.lua")
|
||||
dofile(path .. "/sealife.lua")
|
||||
dofile(path .. "/fences.lua")
|
||||
dofile(path .. "/gates.lua")
|
||||
dofile(path .. "/mapgen.lua")
|
||||
dofile(path .. "/compatibility.lua")
|
||||
dofile(path .. "/stairs.lua")
|
||||
dofile(path .. "/lucky_block.lua")
|
||||
|
||||
-- Set bonemeal aliases
|
||||
if minetest.get_modpath("bonemeal") then
|
||||
minetest.register_alias("ethereal:bone", "bonemeal:bone")
|
||||
minetest.register_alias("ethereal:bonemeal", "bonemeal:bonemeal")
|
||||
else -- or return to where it came from
|
||||
minetest.register_alias("ethereal:bone", "default:dirt")
|
||||
minetest.register_alias("ethereal:bonemeal", "default:dirt")
|
||||
end
|
||||
|
||||
if minetest.get_modpath("xanadu") then
|
||||
dofile(path .. "/plantpack.lua")
|
||||
end
|
||||
|
||||
print (S("[MOD] Ethereal loaded"))
|
|
@ -0,0 +1,505 @@
|
|||
|
||||
local S = ethereal.intllib
|
||||
|
||||
-- set leaftype (value inside init.lua)
|
||||
local leaftype = "plantlike"
|
||||
|
||||
if ethereal.leaftype ~= 0 then
|
||||
leaftype = "allfaces_optional"
|
||||
end
|
||||
|
||||
-- default apple tree leaves
|
||||
minetest.override_item("default:leaves", {
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
inventory_image = "default_leaves.png",
|
||||
wield_image = "default_leaves.png",
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- ability to craft big tree sapling
|
||||
minetest.register_craft({
|
||||
recipe = {{"default:sapling", "default:sapling", "default:sapling"}},
|
||||
output = "ethereal:big_tree_sapling"
|
||||
})
|
||||
|
||||
-- default jungle tree leaves
|
||||
minetest.override_item("default:jungleleaves", {
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
inventory_image = "default_jungleleaves.png",
|
||||
wield_image = "default_jungleleaves.png",
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- default pine tree leaves
|
||||
minetest.override_item("default:pine_needles", {
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
inventory_image = "default_pine_needles.png",
|
||||
wield_image = "default_pine_needles.png",
|
||||
walkable = ethereal.leafwalk,
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"default:pine_sapling"}, rarity = 20},
|
||||
{items = {"ethereal:pine_nuts"}, rarity = 5},
|
||||
{items = {"default:pine_needles"}}
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
-- default acacia tree leaves
|
||||
minetest.override_item("default:acacia_leaves", {
|
||||
drawtype = leaftype,
|
||||
inventory_image = "default_acacia_leaves.png",
|
||||
wield_image = "default_acacia_leaves.png",
|
||||
visual_scale = 1.4,
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- default aspen tree leaves
|
||||
minetest.override_item("default:aspen_leaves", {
|
||||
drawtype = leaftype,
|
||||
inventory_image = "default_aspen_leaves.png",
|
||||
wield_image = "default_aspen_leaves.png",
|
||||
visual_scale = 1.4,
|
||||
walkable = ethereal.leafwalk,
|
||||
})
|
||||
|
||||
-- willow twig
|
||||
minetest.register_node("ethereal:willow_twig", {
|
||||
description = S("Willow Twig"),
|
||||
drawtype = "plantlike",
|
||||
tiles = {"willow_twig.png"},
|
||||
inventory_image = "willow_twig.png",
|
||||
wield_image = "willow_twig.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
visual_scale = 1.4,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:willow_sapling"}, rarity = 50},
|
||||
{items = {"ethereal:willow_twig"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- redwood leaves
|
||||
minetest.register_node("ethereal:redwood_leaves", {
|
||||
description = S("Redwood Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"redwood_leaves.png"},
|
||||
inventory_image = "redwood_leaves.png",
|
||||
wield_image = "redwood_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:redwood_sapling"}, rarity = 50},
|
||||
{items = {"ethereal:redwood_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- orange tree leaves
|
||||
minetest.register_node("ethereal:orange_leaves", {
|
||||
description = S("Orange Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"orange_leaves.png"},
|
||||
inventory_image = "orange_leaves.png",
|
||||
wield_image = "orange_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:orange_tree_sapling"}, rarity = 15},
|
||||
{items = {"ethereal:orange_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- banana tree leaves
|
||||
minetest.register_node("ethereal:bananaleaves", {
|
||||
description = S("Banana Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"banana_leaf.png"},
|
||||
inventory_image = "banana_leaf.png",
|
||||
wield_image = "banana_leaf.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:banana_tree_sapling"}, rarity = 10},
|
||||
{items = {"ethereal:bananaleaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- healing tree leaves
|
||||
minetest.register_node("ethereal:yellowleaves", {
|
||||
description = S("Healing Tree Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"yellow_leaves.png"},
|
||||
inventory_image = "yellow_leaves.png",
|
||||
wield_image = "yellow_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:yellow_tree_sapling"}, rarity = 50},
|
||||
{items = {"ethereal:yellowleaves"}}
|
||||
}
|
||||
},
|
||||
-- one leaf heals half a heart when eaten
|
||||
on_use = minetest.item_eat(1),
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
light_source = 9,
|
||||
})
|
||||
|
||||
-- palm tree leaves
|
||||
minetest.register_node("ethereal:palmleaves", {
|
||||
description = S("Palm Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"moretrees_palm_leaves.png"},
|
||||
inventory_image = "moretrees_palm_leaves.png",
|
||||
wield_image = "moretrees_palm_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:palm_sapling"}, rarity = 10},
|
||||
{items = {"ethereal:palmleaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- birch tree leaves
|
||||
minetest.register_node("ethereal:birch_leaves", {
|
||||
description = S("Birch Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"moretrees_birch_leaves.png"},
|
||||
inventory_image = "moretrees_birch_leaves.png",
|
||||
wield_image = "moretrees_birch_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:birch_sapling"}, rarity = 20},
|
||||
{items = {"ethereal:birch_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- frost tree leaves
|
||||
minetest.register_node("ethereal:frost_leaves", {
|
||||
description = S("Frost Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"ethereal_frost_leaves.png"},
|
||||
inventory_image = "ethereal_frost_leaves.png",
|
||||
wield_image = "ethereal_frost_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, puts_out_fire = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:frost_tree_sapling"}, rarity = 15},
|
||||
{items = {"ethereal:frost_leaves"}}
|
||||
}
|
||||
},
|
||||
light_source = 9,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- bamboo stalk leaves
|
||||
minetest.register_node("ethereal:bamboo_leaves", {
|
||||
description = S("Bamboo Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"bamboo_leaves.png"},
|
||||
inventory_image = "bamboo_leaves.png",
|
||||
wield_image = "bamboo_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:bamboo_sprout"}, rarity = 10},
|
||||
{items = {"ethereal:bamboo_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- sakura leaves
|
||||
minetest.register_node("ethereal:sakura_leaves", {
|
||||
description = S("Sakura Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"ethereal_sakura_leaves.png"},
|
||||
inventory_image = "ethereal_sakura_leaves.png",
|
||||
wield_image = "ethereal_sakura_leaves.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:sakura_sapling"}, rarity = 30},
|
||||
{items = {"ethereal:sakura_leaves"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
minetest.register_node("ethereal:sakura_leaves2", {
|
||||
description = S("Sakura Leaves"),
|
||||
drawtype = leaftype,
|
||||
visual_scale = 1.4,
|
||||
tiles = {"ethereal_sakura_leaves2.png"},
|
||||
inventory_image = "ethereal_sakura_leaves2.png",
|
||||
wield_image = "ethereal_sakura_leaves2.png",
|
||||
paramtype = "light",
|
||||
walkable = ethereal.leafwalk,
|
||||
waving = 1,
|
||||
groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:sakura_sapling"}, rarity = 30},
|
||||
{items = {"ethereal:sakura_leaves2"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_place_node = default.after_place_leaves,
|
||||
})
|
||||
|
||||
-- mushroom tops
|
||||
minetest.register_node("ethereal:mushroom", {
|
||||
description = S("Mushroom Cap"),
|
||||
tiles = {"mushroom_block.png"},
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
{items = {"ethereal:mushroom_sapling"}, rarity = 20},
|
||||
{items = {"ethereal:mushroom"}}
|
||||
}
|
||||
},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:mushroom",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
-- mushroom pore (spongelike material found inside giant shrooms)
|
||||
minetest.register_node("ethereal:mushroom_pore", {
|
||||
description = S("Mushroom Pore"),
|
||||
tiles = {"mushroom_pore.png"},
|
||||
groups = {
|
||||
snappy = 3, cracky = 3, choppy = 3, oddly_breakable_by_hand = 3,
|
||||
flammable = 2, disable_jump = 1, fall_damage_add_percent = -100
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:mushroom_pore",
|
||||
burntime = 3,
|
||||
})
|
||||
|
||||
-- hedge block
|
||||
minetest.register_node("ethereal:bush", {
|
||||
description = S("Bush"),
|
||||
tiles = {"ethereal_bush.png"},
|
||||
walkable = true,
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bush",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "ethereal:bamboo_leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:bush",
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
-- bush block #2
|
||||
minetest.register_node("ethereal:bush2", {
|
||||
drawtype = "allfaces_optional",
|
||||
description = S("Bush #2"),
|
||||
tiles = {"default_aspen_leaves.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bush2",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "default:aspen_leaves", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:bush2",
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
-- bush block #3
|
||||
minetest.register_node("ethereal:bush3", {
|
||||
drawtype = "allfaces_optional",
|
||||
description = S("Bush #3"),
|
||||
tiles = {"default_pine_needles.png"},
|
||||
paramtype = "light",
|
||||
walkable = true,
|
||||
groups = {snappy = 3, flammable = 2},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "ethereal:bush3",
|
||||
recipe = {
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
{"group:leaves", "default:pine_needles", "group:leaves"},
|
||||
{"group:leaves", "group:leaves", "group:leaves"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "ethereal:bush3",
|
||||
burntime = 1,
|
||||
})
|
||||
|
||||
-- compatibility check for new mt version with leafdecay function
|
||||
if minetest.registered_nodes["default:dirt_with_rainforest_litter"] then
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"default:tree"},
|
||||
leaves = {
|
||||
"default:apple", "default:leaves", "ethereal:orange",
|
||||
"ethereal:orange_leaves", "ethereal:vine"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:willow_trunk"},
|
||||
leaves = {"ethereal:willow_twig"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:redwood_trunk"},
|
||||
leaves = {"ethereal:redwood_leaves"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:frost_tree"},
|
||||
leaves = {"ethereal:frost_leaves"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:yellow_trunk"},
|
||||
leaves = {"ethereal:yellowleaves", "ethereal:golden_apple"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:palm_trunk"},
|
||||
leaves = {"ethereal:palmleaves", "ethereal:coconut"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:banana_trunk"},
|
||||
leaves = {"ethereal:bananaleaves", "ethereal:banana"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:birch_trunk"},
|
||||
leaves = {"ethereal:birch_leaves"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:bamboo"},
|
||||
leaves = {"ethereal:bamboo_leaves"},
|
||||
radius = 2
|
||||
})
|
||||
|
||||
default.register_leafdecay({
|
||||
trunks = {"ethereal:sakura_trunk"},
|
||||
leaves = {"ethereal:sakura_leaves", "ethereal:sakura_leaves2"},
|
||||
radius = 3
|
||||
})
|
||||
|
||||
end
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 TenPlus1
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
|
@ -0,0 +1,89 @@
|
|||
|
||||
-- add lucky blocks
|
||||
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
local epath = minetest.get_modpath("ethereal") .. "/schematics/"
|
||||
|
||||
lucky_block:add_schematics({
|
||||
{"pinetree", ethereal.pinetree, {x = 3, y = 0, z = 3}},
|
||||
{"palmtree", ethereal.palmtree, {x = 4, y = 0, z = 4}},
|
||||
{"bananatree", ethereal.bananatree, {x = 3, y = 0, z = 3}},
|
||||
{"orangetree", ethereal.orangetree, {x = 1, y = 0, z = 1}},
|
||||
{"birchtree", ethereal.birchtree, {x = 2, y = 0, z = 2}},
|
||||
})
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"ethereal:firethorn"}, 3},
|
||||
{"dro", {"ethereal:firethorn_jelly"}, 3},
|
||||
{"nod", "ethereal:crystal_spike", 1},
|
||||
{"sch", "pinetree", 0, false},
|
||||
{"dro", {"ethereal:orange"}, 10},
|
||||
{"sch", "appletree", 0, false},
|
||||
{"dro", {"ethereal:strawberry"}, 10},
|
||||
{"sch", "bananatree", 0, false},
|
||||
{"sch", "orangetree", 0, false},
|
||||
{"dro", {"ethereal:banana"}, 10},
|
||||
{"sch", "acaciatree", 0, false},
|
||||
{"dro", {"ethereal:golden_apple"}, 3},
|
||||
{"sch", "palmtree", 0, false},
|
||||
{"dro", {"ethereal:tree_sapling"}, 5},
|
||||
{"dro", {"ethereal:orange_tree_sapling"}, 5},
|
||||
{"dro", {"ethereal:banana_tree_sapling"}, 5},
|
||||
{"dro", {"ethereal:willow_sapling"} ,5},
|
||||
{"dro", {"ethereal:mushroom_sapling"} ,5},
|
||||
{"dro", {"ethereal:palm_sapling"} ,5},
|
||||
{"dro", {"ethereal:birch_sapling"} ,5},
|
||||
{"dro", {"ethereal:redwood_sapling"} ,1},
|
||||
{"dro", {"ethereal:prairie_dirt"}, 10},
|
||||
{"dro", {"ethereal:grove_dirt"}, 10},
|
||||
{"fal", {"default:lava_source", "default:lava_source", "default:lava_source",
|
||||
"default:lava_source", "default:lava_source"}, 1, true, 4},
|
||||
{"dro", {"ethereal:cold_dirt"}, 10},
|
||||
{"dro", {"ethereal:mushroom_dirt"}, 10},
|
||||
{"dro", {"ethereal:fiery_dirt"}, 10},
|
||||
{"dro", {"ethereal:axe_crystal"}},
|
||||
{"nod", "ethereal:fire_flower", 1},
|
||||
{"dro", {"ethereal:sword_crystal"}},
|
||||
{"dro", {"ethereal:pick_crystal"}},
|
||||
{"sch", "birchtree", 0, false},
|
||||
{"dro", {"ethereal:fish_raw"}},
|
||||
{"dro", {"ethereal:shovel_crystal"}},
|
||||
{"dro", {"ethereal:fishing_rod_baited"}},
|
||||
{"exp"},
|
||||
{"dro", {"ethereal:fire_dust"}, 2},
|
||||
{"exp", 4},
|
||||
{"dro", {"ethereal:crystal_gilly_staff"}},
|
||||
{"dro", {"ethereal:light_staff"}},
|
||||
{"nod", "default:chest", 0, {
|
||||
{name = "ethereal:birch_sapling", max = 10},
|
||||
{name = "ethereal:palm_sapling", max = 10},
|
||||
{name = "ethereal:orange_tree_sapling", max = 10},
|
||||
{name = "ethereal:redwood_sapling", max = 10},
|
||||
{name = "ethereal:bamboo_sprout", max = 10},
|
||||
{name = "ethereal:banana_tree_sapling", max = 10},
|
||||
{name = "ethereal:mushroom_sapling", max = 10},
|
||||
{name = "ethereal:frost_tree_sapling", max = 10},
|
||||
{name = "ethereal:sakura_sapling", max = 10},
|
||||
{name = "ethereal:willow_sapling", max = 10},
|
||||
}},
|
||||
})
|
||||
|
||||
if minetest.get_modpath("3d_armor") then
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"3d_armor:helmet_crystal"}},
|
||||
{"dro", {"3d_armor:chestplate_crystal"}},
|
||||
{"dro", {"3d_armor:leggings_crystal"}},
|
||||
{"dro", {"3d_armor:boots_crystal"}},
|
||||
{"lig"},
|
||||
})
|
||||
end
|
||||
|
||||
if minetest.get_modpath("shields") then
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"shields:shield_crystal"}},
|
||||
{"exp"},
|
||||
})
|
||||
end
|
||||
|
||||
end -- END IF
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue