lot of optimization
* config file is now read from worldfolder * optimized the presents * renamed files to be clear, what they are doing * updated readme * optimized textures
|
@ -10,4 +10,5 @@
|
||||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
|
|
237
init.lua
|
@ -1,33 +1,40 @@
|
||||||
|
|
||||||
|
--load configuration file from world folder
|
||||||
|
local MODPATH = minetest.get_modpath("christmas_craft")
|
||||||
local worldpath = minetest.get_worldpath()
|
local worldpath = minetest.get_worldpath()
|
||||||
christmas_craft = {};
|
local config = Settings(worldpath.."/christmas_craft.conf")
|
||||||
christmas_craft.config = Settings(worldpath.."/christmas_craft.conf")
|
|
||||||
|
|
||||||
local conf_table = christmas_craft.config:to_table()
|
local conf_table = config:to_table()
|
||||||
|
|
||||||
--look into readme.txt how to change settings
|
--look into readme.md how to change settings
|
||||||
local defaults = {
|
local defaults = {
|
||||||
enable_4seasons = "false",
|
|
||||||
enable_crafts = "true",
|
|
||||||
enable_snowing = "true",
|
enable_snowing = "true",
|
||||||
|
enable_crafts = "true",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
--if not in conf file, create it.
|
||||||
for k, v in pairs(defaults) do
|
for k, v in pairs(defaults) do
|
||||||
if conf_table[k] == nil then
|
if conf_table[k] == nil then
|
||||||
christmas_craft.config:set(k, v)
|
config:set(k, v)
|
||||||
|
config:write();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("4seasons") ~=nil then
|
||||||
if christmas_craft.config:get("enable_enable_4seasons") == "true" then
|
minetest.log("info", "found 4seasons mod. execute 4seasons.lua")
|
||||||
dofile(minetest.get_modpath("christmas_craft").."/4seasons.lua")--enable in christmas_craft.conf if you have 4 seasons installed
|
dofile(MODPATH .."/4seasons.lua")--if the 4seasons mod is installed execute this file
|
||||||
end
|
end
|
||||||
|
|
||||||
if christmas_craft.config:get("enable_crafts") == "true" then
|
--if snow enabled, let it snow
|
||||||
dofile(minetest.get_modpath("christmas_craft").."/crafts.lua") --enable this if you want craft rezieps
|
if config:get("enable_snowing") == "true" then
|
||||||
|
minetest.log("info","let it snow, let it snow, let it snow.")
|
||||||
|
dofile(MODPATH .."/snow.lua")--if snow enabled, execute this file
|
||||||
end
|
end
|
||||||
|
|
||||||
if christmas_craft.config:get("enable_snow") == "true" then
|
--if crafts enabled, register the craft recieps
|
||||||
dofile(minetest.get_modpath("christmas_craft").."/snow.lua") -- enable this if you want snow
|
if config:get("enable_crafts") == "true" then
|
||||||
|
minetest.log("info","registering craft rezieps for snow mod")
|
||||||
|
dofile(MODPATH .."/crafts.lua")--if snow enabled, execute this file
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -331,6 +338,29 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
|
|
||||||
-- presents --
|
-- presents --
|
||||||
|
|
||||||
|
--store the drop in a variable
|
||||||
|
local presents_drop = {
|
||||||
|
max_items = 2, items = {
|
||||||
|
{items = {'default:bookshelf'}, rarity = 15,},
|
||||||
|
{items = {'default:pick_mese'}, rarity = 20,},
|
||||||
|
{items = {'default:shovel_steel'}, rarity = 15,},
|
||||||
|
{items = {'default:axe_steel'}, rarity = 15,},
|
||||||
|
{items = {'default:pick_steel'}, rarity = 15,},
|
||||||
|
{items = {'default:sign_wall'}, rarity = 20,},
|
||||||
|
{items = {'default:chest'}, rarity = 20,},
|
||||||
|
{items = {'default:furnace'}, rarity = 20,},
|
||||||
|
{items = {'default:steelblock'}, rarity = 25,},
|
||||||
|
{items = {'default:coal_lump'}, rarity = 25,},
|
||||||
|
{items = {'diamonds:pick'}, rarity = 30,},
|
||||||
|
{items = {'diamonds:shovel'}, rarity = 30,},
|
||||||
|
{items = {'diamonds:axe'}, rarity = 30,},
|
||||||
|
{items = {'diamonds:block'}, rarity = 30,},
|
||||||
|
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
||||||
|
{items = {'default:chest_locked'}, rarity = 20,},
|
||||||
|
{items = {'default:brick'}, rarity = 25,},
|
||||||
|
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
||||||
|
}}
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:present_box", {
|
minetest.register_node("christmas_craft:present_box", {
|
||||||
description = "Present Box",
|
description = "Present Box",
|
||||||
tiles = {"christmas_craft_present_box.png"},
|
tiles = {"christmas_craft_present_box.png"},
|
||||||
|
@ -376,27 +406,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_gr.png^christmas_craft_bow_top.png", "christmas_craft_present_gr.png^christmas_craft_bow_bottom.png", "christmas_craft_present_gr.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_gr.png^christmas_craft_bow_top.png", "christmas_craft_present_gr.png^christmas_craft_bow_bottom.png", "christmas_craft_present_gr.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -407,27 +417,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_re.png^christmas_craft_bow_top.png", "christmas_craft_present_re.png^christmas_craft_bow_bottom.png", "christmas_craft_present_re.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_re.png^christmas_craft_bow_top.png", "christmas_craft_present_re.png^christmas_craft_bow_bottom.png", "christmas_craft_present_re.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -438,27 +428,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_bl.png^christmas_craft_bow_top.png", "christmas_craft_present_bl.png^christmas_craft_bow_bottom.png", "christmas_craft_present_bl.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_bl.png^christmas_craft_bow_top.png", "christmas_craft_present_bl.png^christmas_craft_bow_bottom.png", "christmas_craft_present_bl.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -469,27 +439,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_ye.png^christmas_craft_bow_top.png", "christmas_craft_present_ye.png^christmas_craft_bow_bottom.png", "christmas_craft_present_ye.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_ye.png^christmas_craft_bow_top.png", "christmas_craft_present_ye.png^christmas_craft_bow_bottom.png", "christmas_craft_present_ye.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -500,27 +450,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_re.png^christmas_craft_bow_top.png", "christmas_craft_present_re.png^christmas_craft_bow_bottom.png", "christmas_craft_present_re.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_re.png^christmas_craft_bow_top.png", "christmas_craft_present_re.png^christmas_craft_bow_bottom.png", "christmas_craft_present_re.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -531,27 +461,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_vi.png^christmas_craft_bow_top.png", "christmas_craft_present_vi.png^christmas_craft_bow_bottom.png", "christmas_craft_present_vi.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_vi.png^christmas_craft_bow_top.png", "christmas_craft_present_vi.png^christmas_craft_bow_bottom.png", "christmas_craft_present_vi.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -562,27 +472,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_or.png^christmas_craft_bow_top.png", "christmas_craft_present_or.png^christmas_craft_bow_bottom.png", "christmas_craft_present_or.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_or.png^christmas_craft_bow_top.png", "christmas_craft_present_or.png^christmas_craft_bow_bottom.png", "christmas_craft_present_or.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -593,27 +483,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
tiles = {"christmas_craft_present_pi.png^christmas_craft_bow_top.png", "christmas_craft_present_pi.png^christmas_craft_bow_bottom.png", "christmas_craft_present_pi.png^christmas_craft_bow_side.png"},
|
tiles = {"christmas_craft_present_pi.png^christmas_craft_bow_top.png", "christmas_craft_present_pi.png^christmas_craft_bow_bottom.png", "christmas_craft_present_pi.png^christmas_craft_bow_side.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
drop = {
|
drop = presents_drop,
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_mese'}, rarity = 20,},
|
|
||||||
{items = {'default:shovel_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:axe_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:pick_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:sign_wall'}, rarity = 20,},
|
|
||||||
{items = {'default:chest'}, rarity = 20,},
|
|
||||||
{items = {'default:furnace'}, rarity = 20,},
|
|
||||||
{items = {'default:steelblock'}, rarity = 25,},
|
|
||||||
{items = {'default:coal_lump'}, rarity = 25,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 30,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 30,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
sounds = default.node_sound_dirt_defaults({
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
}),
|
}),
|
||||||
|
@ -705,7 +575,7 @@ minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
-- crafts --
|
-- crafts --
|
||||||
|
|
||||||
--overwrite the default stick
|
--overwrite the default stick
|
||||||
|
|
||||||
minetest.register_node(":default:stick", {
|
minetest.register_node(":default:stick", {
|
||||||
description = "stick",
|
description = "stick",
|
||||||
drawtype = "torchlike",
|
drawtype = "torchlike",
|
||||||
|
@ -725,7 +595,6 @@ minetest.register_node(":default:stick", {
|
||||||
legacy_wallmounted = true,
|
legacy_wallmounted = true,
|
||||||
sounds = default.node_sound_defaults(),
|
sounds = default.node_sound_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
-- complex node --
|
-- complex node --
|
||||||
|
|
||||||
snowball_DAMAGE=0.5
|
snowball_DAMAGE=0.5
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
---------------------------------------------------
|
|
||||||
CHRISTMAS CRAFT MOD FOR MINETEST
|
CHRISTMAS CRAFT MOD FOR MINETEST
|
||||||
---------------------------------------------------
|
==================================
|
||||||
0.2
|
version 0.3
|
||||||
|
|
||||||
ABOUT THE MOD
|
ABOUT THE MOD
|
||||||
...................................................
|
------------------------------------------
|
||||||
|
|
||||||
Bring the joy of Christmas to Minetest. This mod adds
|
Bring the joy of Christmas to Minetest. This mod adds
|
||||||
Christmas related things such as presents, baubles ,
|
Christmas related things such as presents, baubles ,
|
||||||
decorations and more, also the mod can also allows you
|
decorations and more, also the mod can also allows you
|
||||||
|
@ -13,7 +11,7 @@ to cover the grass with snow, and make things such as
|
||||||
snowmen. You can even have a snowball fight!
|
snowmen. You can even have a snowball fight!
|
||||||
|
|
||||||
WHATS NEW?
|
WHATS NEW?
|
||||||
....................................................
|
------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
* New crafts for the items
|
* New crafts for the items
|
||||||
|
@ -25,7 +23,7 @@ WHATS NEW?
|
||||||
* Some more stuff
|
* Some more stuff
|
||||||
|
|
||||||
HOW TO INSTALL?
|
HOW TO INSTALL?
|
||||||
....................................................
|
------------------------------------------
|
||||||
|
|
||||||
1. extract the "christmas_craft_0.2" folder
|
1. extract the "christmas_craft_0.2" folder
|
||||||
|
|
||||||
|
@ -40,25 +38,22 @@ HOW TO INSTALL?
|
||||||
6. enjoy the mod
|
6. enjoy the mod
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
....................................................
|
------------------------------------------
|
||||||
to edit the settings create a christmas_craft.conf file in your world dir.
|
|
||||||
add and modify the following lines:
|
|
||||||
|
|
||||||
enable_4seasons = "false"
|
Look into the world dir. there should be a file caled `christmas_craft.conf`.
|
||||||
enable_crafts = "true"
|
The file contains the 2 folowing lines:
|
||||||
enable_snowing = "true"
|
|
||||||
|
|
||||||
example if you dont want the snowing landscape change
|
|
||||||
|
|
||||||
enable_snowing = "true"
|
enable_crafts = true
|
||||||
to
|
enable_snowing = true
|
||||||
enable_snowing = "false"
|
|
||||||
|
|
||||||
|
if you want to disable the craft recieps, because christmas is over, than you must just change the line `enable_crafts = true` into `enable_crafts = true`.
|
||||||
|
and if you dont like the snowy landscape just change `enable_snowing = true` to `enable_snowing = false`
|
||||||
thats all :)
|
thats all :)
|
||||||
|
|
||||||
|
|
||||||
OTHER STUFF
|
OTHER STUFF
|
||||||
....................................................
|
------------------------------------------
|
||||||
|
|
||||||
CHRISTMAS CRAFT MOD FOR MINETEST BY INFINATUM
|
CHRISTMAS CRAFT MOD FOR MINETEST BY INFINATUM
|
||||||
|
|
||||||
thankyou for useing the mod
|
thankyou for useing the mod
|
||||||
|
@ -73,4 +68,3 @@ https://bitbucket.org/kingarthursteam/christmas-craft/wiki/Home
|
||||||
|
|
||||||
Find newer devs of the mod on my site;
|
Find newer devs of the mod on my site;
|
||||||
http://thatraspberrypiserver.raspberryip.com/Infinatum_Minetest/christmas_craft
|
http://thatraspberrypiserver.raspberryip.com/Infinatum_Minetest/christmas_craft
|
||||||
|
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 263 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 382 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 137 B |
Before Width: | Height: | Size: 172 B After Width: | Height: | Size: 133 B |
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 241 B After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 244 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 187 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 121 B |
Before Width: | Height: | Size: 188 B After Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 190 B After Width: | Height: | Size: 177 B |
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 175 B |
Before Width: | Height: | Size: 192 B After Width: | Height: | Size: 183 B |
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 234 B |
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 132 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 240 B After Width: | Height: | Size: 153 B |
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 229 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 215 B After Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 199 B |
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 326 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 446 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 255 B After Width: | Height: | Size: 224 B |