Updateing Mod
* Removed 4seasons Support * Removed Nodes which are now in the game (like snow node) * Removed old textures * Added more coloured items * Added candy cane nodes * Added Christmas food * Added new snow nodes * Updated mod so it supports the new version of minetest * Updated old parts of the mod with better code * Fixed some bugs
							
								
								
									
										87
									
								
								4seasons.lua
									
									
									
									
									
								
							
							
						
						@@ -1,87 +0,0 @@
 | 
			
		||||
 | 
			
		||||
print (" ---- mods override is Loading! ---- ")
 | 
			
		||||
 | 
			
		||||
-- leaves -- 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--minetest.register_node(":4seasons:leaves_winter", {
 | 
			
		||||
--	description = "Leaves",
 | 
			
		||||
--	drawtype = "allfaces_optional",
 | 
			
		||||
--	visual_scale = 1.3,
 | 
			
		||||
--	tile_images = {"4seasons_leaves_with_snow.png"},
 | 
			
		||||
--	paramtype = "light",
 | 
			
		||||
--	groups = {snappy=3, leafdecay=3, flammable=2},
 | 
			
		||||
--	drop = {
 | 
			
		||||
--		max_items = 1, items = {
 | 
			
		||||
--			{items = {'default:sapling'},	rarity = 20,},
 | 
			
		||||
--			{items = {'4seasons:leaves_winter'},}
 | 
			
		||||
--		}},
 | 
			
		||||
--	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
--})
 | 
			
		||||
 | 
			
		||||
 -- why are u overwriting that? its just the normal 4 season leaves.
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
 -- grass --
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":4seasons:grass_winter", {
 | 
			
		||||
	description = "Dirt with snow",
 | 
			
		||||
	tiles = {"4seasons_snow.png", "default_dirt.png", "default_dirt.png^4seasons_grass_w_snow_side.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	drop = {
 | 
			
		||||
		max_items = 2, items = {
 | 
			
		||||
			{items = {'default:dirt'},	rarity = 0,},
 | 
			
		||||
			{items = {'christmas_craft:snowball'},	rarity = 0,},	
 | 
			
		||||
		}},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
		footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--normal sand
 | 
			
		||||
minetest.register_node(":4seasons:sand_winter", {
 | 
			
		||||
	description = "Sand with snow",
 | 
			
		||||
	tiles = {"4seasons_snow.png", "default_sand.png", "default_sand.png^4seasons_sand_w_snow_side.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	drop = {'default:sand',
 | 
			
		||||
	max_items = 2, items = {
 | 
			
		||||
			{items = {'default:sand'},	rarity = 0,},
 | 
			
		||||
			{items = {'christmas_craft:snowball'},	rarity = 0,},	
 | 
			
		||||
		}},
 | 
			
		||||
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
		footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
--desert sand
 | 
			
		||||
minetest.register_node(":4seasons:desertsand_winter", {
 | 
			
		||||
	description = "Desert Sand with snow",
 | 
			
		||||
	tiles = {"4seasons_snow.png", "default_desert_sand.png", "default_desert_sand.png^4seasons_desertsand_w_snow_side.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	drop = {'default:desert_sand',
 | 
			
		||||
	max_items = 2, items = {
 | 
			
		||||
			{items = {'default:desert_sand'},	rarity = 0,},
 | 
			
		||||
			{items = {'christmas_craft:snowball'},	rarity = 0,},	
 | 
			
		||||
		}},
 | 
			
		||||
	sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
		footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--cactus winter
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":4seasons:cactus_winter", {
 | 
			
		||||
	description = "Cactus",
 | 
			
		||||
	tiles = {"4seasons_cactus_wsnow_top.png", "4seasons_cactus_wsnow_top.png", "4seasons_cactus_wsnow_side.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {snappy=2,choppy=3,flammable=2},
 | 
			
		||||
	drop = {'default:cactus',
 | 
			
		||||
	max_items = 2, items = {
 | 
			
		||||
			{items = {'default:cactus'},	rarity = 0,},
 | 
			
		||||
			{items = {'christmas_craft:snowball'},	rarity = 0,},	
 | 
			
		||||
		}},
 | 
			
		||||
	sounds = default.node_sound_wood_defaults(),
 | 
			
		||||
})
 | 
			
		||||
							
								
								
									
										45
									
								
								License.txt
									
									
									
									
									
								
							
							
						
						@@ -1,14 +1,41 @@
 | 
			
		||||
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 | 
			
		||||
                    Version 2, December 2013
 | 
			
		||||
CHRISTMAS CRAFT MOD FOR MINETEST
 | 
			
		||||
==================================
 | 
			
		||||
 | 
			
		||||
 Copyright (C) 2013 Infinatum AKA Sean Emmett <thatraspberrypiserver.raspberryip.com/Infinatum_Minetest.com>
 | 
			
		||||
License
 | 
			
		||||
------------------------------------------
 | 
			
		||||
 | 
			
		||||
 Everyone is permitted to copy and distribute verbatim or modified
 | 
			
		||||
 copies of this license document, and changing it is allowed as long
 | 
			
		||||
 as the name is changed.
 | 
			
		||||
This work is licensed under a 
 | 
			
		||||
Creative Commons Attribution-ShareAlike 4.0 International License.
 | 
			
		||||
Version 2, December 2013
 | 
			
		||||
 | 
			
		||||
            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
 | 
			
		||||
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 | 
			
		||||
------------------------------------------
 | 
			
		||||
 | 
			
		||||
  0. You just DO WHAT THE FUCK YOU WANT TO.
 | 
			
		||||
 | 
			
		||||
YOU ARE FREE TO:
 | 
			
		||||
------------------------------------------
 | 
			
		||||
 | 
			
		||||
1. Share — copy and redistribute the material in any medium or format
 | 
			
		||||
 | 
			
		||||
2.  Adapt — remix, transform, and build upon the material for any purpose, even commercially. 
 | 
			
		||||
 | 
			
		||||
The licensor cannot revoke these freedoms as long as you follow the license terms.
 | 
			
		||||
 | 
			
		||||
UNDER THE FOLLOWING TERMS:
 | 
			
		||||
------------------------------------------
 | 
			
		||||
 | 
			
		||||
ATTRIBUTION
 | 
			
		||||
You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use. 
 | 
			
		||||
 | 
			
		||||
SHARE ALIKE
 | 
			
		||||
 If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original. 
 | 
			
		||||
 | 
			
		||||
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. 
 | 
			
		||||
 | 
			
		||||
OTHER INFOMATION:
 | 
			
		||||
------------------------------------------
 | 
			
		||||
 | 
			
		||||
More infomation can be found here;
 | 
			
		||||
https://creativecommons.org/licenses/by-sa/4.0/
 | 
			
		||||
 | 
			
		||||
This is a human-readable summary of (and not a substitute for) the license.
 | 
			
		||||
https://creativecommons.org/licenses/by-sa/4.0/legalcode
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										296
									
								
								crafts.lua
									
									
									
									
									
								
							
							
						
						@@ -1,296 +0,0 @@
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:christmas_lights 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"farming:string","default:mese_crystal", "farming:string"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:christmas_leaves 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:leaves","default:leaves"},
 | 
			
		||||
		{"default:leaves","default:leaves"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:christmas_wreath ",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:christmas_leaves","christmas_craft:christmas_leaves","christmas_craft:christmas_leaves"},
 | 
			
		||||
		{"christmas_craft:christmas_leaves","","christmas_craft:christmas_leaves"},
 | 
			
		||||
		{"christmas_craft:christmas_leaves","christmas_craft:red_ribbon","christmas_craft:christmas_leaves"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:snow_block",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:snowball","christmas_craft:snowball"},
 | 
			
		||||
		{"christmas_craft:snowball","christmas_craft:snowball"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:snowman",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:coal_lump","christmas_craft:snowball","default:coal_lump"},
 | 
			
		||||
		{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"},
 | 
			
		||||
		{"default:coal_lump","default:coal_lump","default:coal_lump"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:christmas_star ",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"","default:gold_ingot",""},
 | 
			
		||||
		{"default:gold_ingot","default:gold_ingot","default:gold_ingot"},
 | 
			
		||||
		{"default:gold_ingot","","default:gold_ingot"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:snowball 4",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:snow_block"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--------------------------
 | 
			
		||||
-- baubles               -
 | 
			
		||||
--------------------------
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:red_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:red", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:yellow_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:yellow", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:green_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:green", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:blue_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:blue", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:orange_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:orange", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:pink_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:pink", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:violet_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","dye:violet", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:silver_baubles 8",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:glass","default:gold_ingot", "default:glass"},
 | 
			
		||||
		{"default:glass","", "default:glass"},
 | 
			
		||||
		{"default:glass","default:glass", "default:glass"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
--------------------------
 | 
			
		||||
-- presents              - 
 | 
			
		||||
--------------------------
 | 
			
		||||
 | 
			
		||||
-- paper colour craft --
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_red',
 | 
			
		||||
	recipe = {'dye:red','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_blue',
 | 
			
		||||
	recipe = {'dye:blue','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_green',
 | 
			
		||||
	recipe = {'dye:green','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_yellow',
 | 
			
		||||
	recipe = {'dye:yellow','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_yellow',
 | 
			
		||||
	recipe = {'dye:yellow','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_violet',
 | 
			
		||||
	recipe = {'dye:violet','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_orange',
 | 
			
		||||
	recipe = {'dye:orange','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:paper_pink',
 | 
			
		||||
	recipe = {'dye:pink','default:paper'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- ribbon craft --
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:red_ribbon',
 | 
			
		||||
	recipe = {'dye:red','farming:string'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- wish list craft --
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	type = "shapeless",
 | 
			
		||||
	output = 'christmas_craft:wish_list',
 | 
			
		||||
	recipe = {'default:stick','default:mese_crystal','default:paper','dye:black'},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- present box --
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:present_box",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:paper","default:paper", "default:paper"},
 | 
			
		||||
		{"default:paper","christmas_craft:wish_list", "default:paper"},
 | 
			
		||||
		{"default:paper","default:paper", "default:paper"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- present craft --
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"default:paper","christmas_craft:red_ribbon", "default:paper"},
 | 
			
		||||
		{"default:paper","christmas_craft:present_box", "default:paper"},
 | 
			
		||||
		{"default:paper","christmas_craft:red_ribbon", "default:paper"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_red",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_red","christmas_craft:red_ribbon", "christmas_craft:paper_red"},
 | 
			
		||||
		{"christmas_craft:paper_red","christmas_craft:present_box", "christmas_craft:paper_red"},
 | 
			
		||||
		{"christmas_craft:paper_red","christmas_craft:red_ribbon", "christmas_craft:paper_red"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_blue",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_blue","christmas_craft:red_ribbon", "christmas_craft:paper_blue"},
 | 
			
		||||
		{"christmas_craft:paper_blue","christmas_craft:present_box", "christmas_craft:paper_blue"},
 | 
			
		||||
		{"christmas_craft:paper_blue","christmas_craft:red_ribbon", "christmas_craft:paper_blue"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_green",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_green","christmas_craft:red_ribbon", "christmas_craft:paper_green"},
 | 
			
		||||
		{"christmas_craft:paper_green","christmas_craft:present_box", "christmas_craft:paper_green"},
 | 
			
		||||
		{"christmas_craft:paper_green","christmas_craft:red_ribbon", "christmas_craft:paper_green"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_yellow",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_yellow","christmas_craft:red_ribbon", "christmas_craft:paper_yellow"},
 | 
			
		||||
		{"christmas_craft:paper_yellow","christmas_craft:present_box", "christmas_craft:paper_yellow"},
 | 
			
		||||
		{"christmas_craft:paper_yellow","christmas_craft:red_ribbon", "christmas_craft:paper_yellow"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_orange",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_orange","christmas_craft:red_ribbon", "christmas_craft:paper_orange"},
 | 
			
		||||
		{"christmas_craft:paper_orange","christmas_craft:present_box", "christmas_craft:paper_orange"},
 | 
			
		||||
		{"christmas_craft:paper_orange","christmas_craft:red_ribbon", "christmas_craft:paper_orange"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_pink",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_pink","christmas_craft:red_ribbon", "christmas_craft:paper_pink"},
 | 
			
		||||
		{"christmas_craft:paper_pink","christmas_craft:present_box", "christmas_craft:paper_pink"},
 | 
			
		||||
		{"christmas_craft:paper_pink","christmas_craft:red_ribbon", "christmas_craft:paper_pink"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = "christmas_craft:Christmas_present_violet",
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{"christmas_craft:paper_violet","christmas_craft:red_ribbon", "christmas_craft:paper_violet"},
 | 
			
		||||
		{"christmas_craft:paper_violet","christmas_craft:present_box", "christmas_craft:paper_violet"},
 | 
			
		||||
		{"christmas_craft:paper_violet","christmas_craft:red_ribbon", "christmas_craft:paper_violet"},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										564
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						@@ -1,4 +1,11 @@
 | 
			
		||||
 | 
			
		||||
dofile(minetest.get_modpath("christmas_craft").."/mod_files/multi-node.lua")
 | 
			
		||||
 | 
			
		||||
dofile(minetest.get_modpath("christmas_craft").."/mod_files/node.lua")
 | 
			
		||||
 | 
			
		||||
dofile(minetest.get_modpath("christmas_craft").."/mod_files/items.lua")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--load configuration file from world folder
 | 
			
		||||
local MODPATH = minetest.get_modpath("christmas_craft")
 | 
			
		||||
local worldpath = minetest.get_worldpath()
 | 
			
		||||
@@ -6,6 +13,9 @@ local config = Settings(worldpath.."/christmas_craft.conf")
 | 
			
		||||
 | 
			
		||||
local conf_table = config:to_table()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--look into readme.md how to change settings
 | 
			
		||||
local defaults = {
 | 
			
		||||
enable_snowing = "true",
 | 
			
		||||
@@ -20,11 +30,13 @@ config:write();
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("4seasons") ~=nil then
 | 
			
		||||
	minetest.log("info", "found 4seasons mod. execute 4seasons.lua")
 | 
			
		||||
	dofile(MODPATH .."/4seasons.lua")--if the 4seasons mod is installed execute this file
 | 
			
		||||
-- if mtfood is installed
 | 
			
		||||
if minetest.get_modpath("mtfoods") ~=nil then
 | 
			
		||||
	minetest.log("info", "found mtfoods mod. execute mtfoods.lua")
 | 
			
		||||
	dofile(MODPATH .."/mod_support/mtfoods.lua")--if the 4seasons mod is installed execute this file
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--if snow enabled, let it snow
 | 
			
		||||
if config:get("enable_snowing") == "true"  then
 | 
			
		||||
	minetest.log("info","let it snow, let it snow, let it snow.")
 | 
			
		||||
@@ -34,546 +46,9 @@ end
 | 
			
		||||
--if crafts enabled, register the craft recieps
 | 
			
		||||
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
 | 
			
		||||
	dofile(MODPATH .."/mod_files/crafts.lua")--if snow enabled, execute this file
 | 
			
		||||
end
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- blocks --
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:snowman", {
 | 
			
		||||
	description = "Snowman",
 | 
			
		||||
	tiles = {"snow.png", "snow.png", "snow.png",
 | 
			
		||||
		"snow.png", "snow.png", "Snowman_F.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
}) 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:christmas_lights", {
 | 
			
		||||
	description = "christmas lights",
 | 
			
		||||
	drawtype = "signlike",
 | 
			
		||||
	light_source = 10,
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{name="lights_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=3.0}},
 | 
			
		||||
		},
 | 
			
		||||
	inventory_image =  "c_lights.png",
 | 
			
		||||
	wield_image = "c_lights.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "wallmounted",
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "wallmounted",
 | 
			
		||||
	},
 | 
			
		||||
	groups = {oddly_breakable_by_hand = 3}, 
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:christmas_wreath", {
 | 
			
		||||
	description = "Christmas Wreath",
 | 
			
		||||
	drawtype = "signlike",
 | 
			
		||||
	walkable = false,
 | 
			
		||||
	tiles = {
 | 
			
		||||
		{name="Wreath.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=3.0}},
 | 
			
		||||
		},
 | 
			
		||||
	inventory_image =  "Wreath.png",
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	paramtype2 = "wallmounted",
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "wallmounted",
 | 
			
		||||
	},
 | 
			
		||||
	groups = {oddly_breakable_by_hand = 3}, 
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:christmas_star", {
 | 
			
		||||
	description = "christmas Star",
 | 
			
		||||
	drawtype = "plantlike",
 | 
			
		||||
	light_source = 10,
 | 
			
		||||
	tiles = {"star.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:snow_block", {
 | 
			
		||||
	description = "snow block",
 | 
			
		||||
	tiles = {"snow.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:christmas_leaves", {
 | 
			
		||||
	description = "Christmas leaves",
 | 
			
		||||
	drawtype = "allfaces_optional",
 | 
			
		||||
	tiles = {"christmas_leaves.png"},
 | 
			
		||||
	is_ground_content = false,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:red_baubles", {
 | 
			
		||||
	description = "Red Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_re.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_re.png","christmas_craft_baubles_side_re.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:yellow_baubles", {
 | 
			
		||||
	description = "Yellow Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_ye.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_ye.png","christmas_craft_baubles_side_ye.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
	node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:green_baubles", {
 | 
			
		||||
	description = "Green Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_gr.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_gr.png","christmas_craft_baubles_side_gr.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:blue_baubles", {
 | 
			
		||||
	description = "Blue Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_bl.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_bl.png","christmas_craft_baubles_side_bl.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:orange_baubles", {
 | 
			
		||||
	description = "Orange Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_or.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_or.png","christmas_craft_baubles_side_or.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:violet_baubles", {
 | 
			
		||||
	description = "Violet Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_vi.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_vi.png","christmas_craft_baubles_side_vi.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:pink_baubles", {
 | 
			
		||||
	description = "Pink Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_pi.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_pi.png","christmas_craft_baubles_side_pi.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
minetest.register_node("christmas_craft:silver_baubles", {
 | 
			
		||||
	description = "Silver Baubles",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	tiles = {"christmas_craft_baubles_top_si.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_si.png","christmas_craft_baubles_side_si.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {crumbly=3},
 | 
			
		||||
	sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
		node_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
			
 | 
			
		||||
			-- side , top , side , side , bottom, side,
 | 
			
		||||
				
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
	selection_box = {
 | 
			
		||||
		type = "fixed",
 | 
			
		||||
		fixed = {
 | 
			
		||||
			{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
 | 
			
		||||
			{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
------------
 | 
			
		||||
--nodes--
 | 
			
		||||
	
 | 
			
		||||
	-- 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", {
 | 
			
		||||
		description = "Present Box",
 | 
			
		||||
		tiles = {"christmas_craft_present_box.png"},
 | 
			
		||||
		is_ground_content = true,
 | 
			
		||||
		paramtype = "light",
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		sounds = default.node_sound_sand_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present", {
 | 
			
		||||
		description = "Christmas Present",
 | 
			
		||||
		tiles = {"christmas_craft_present_wh.png^christmas_craft_bow_top.png", "christmas_craft_present_wh.png^christmas_craft_bow_bottom.png", "christmas_craft_present_wh.png^christmas_craft_bow_side.png"},
 | 
			
		||||
		is_ground_content = true,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = {
 | 
			
		||||
			max_items = 1, min_items = 1, items = {
 | 
			
		||||
				{items = {'default:bookshelf'},	rarity = 90,},
 | 
			
		||||
				{items = {'default:pick_mese'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:shovel_steel'},	rarity = 90,},
 | 
			
		||||
				{items = {'default:axe_steel'},	rarity = 90,},
 | 
			
		||||
				{items = {'default:pick_steel'},	rarity = 90,},
 | 
			
		||||
				{items = {'default:sign_wall'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:chest'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:furnace'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:steelblock'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:coal_lump'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:pick_diamond'},	rarity = 75,},
 | 
			
		||||
				{items = {'default:shovel_diamond'},	rarity = 75,},
 | 
			
		||||
				{items = {'default:axe_diamond'},	rarity = 75,},
 | 
			
		||||
				{items = {'default:diamondblock'},	rarity = 75},
 | 
			
		||||
				{items = {'fake_fire:flint_and_steel'},	rarity = 90,},
 | 
			
		||||
				{items = {'default:chest_locked'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:brick'},	rarity = 80,},
 | 
			
		||||
				{items = {'default:dirt_with_grass'}, rarity = 80,},	
 | 
			
		||||
			}},
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_green", {
 | 
			
		||||
		description = "Christmas Present Green ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_red", {
 | 
			
		||||
		description = "Christmas Present Red ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_blue", {
 | 
			
		||||
		description = "Christmas Present Blue ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_yellow", {
 | 
			
		||||
		description = "Christmas Present Yellow ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_red", {
 | 
			
		||||
		description = "Christmas Present Red ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_violet", {
 | 
			
		||||
		description = "Christmas Present Violet ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_orange", {
 | 
			
		||||
		description = "Christmas Present Orange ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_node("christmas_craft:Christmas_present_pink", {
 | 
			
		||||
		description = "Christmas Present Pink ",
 | 
			
		||||
		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,
 | 
			
		||||
		groups = {crumbly=3},
 | 
			
		||||
		drop = presents_drop,	
 | 
			
		||||
		sounds = default.node_sound_dirt_defaults({
 | 
			
		||||
			footstep = {name="default_grass_footstep", gain=0.4},
 | 
			
		||||
		}),
 | 
			
		||||
	})
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
------------
 | 
			
		||||
--Items--
 | 
			
		||||
 | 
			
		||||
	-- paper --
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_blue", {
 | 
			
		||||
		description = "Blue paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#0000FF99",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_yellow", {
 | 
			
		||||
		description = "Yellow paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#ffff0099",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_green", {
 | 
			
		||||
		description = "Green paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#00ff0099",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_red", {
 | 
			
		||||
		description = "Red paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#FF000099",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_violet", {
 | 
			
		||||
		description = "Violet paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#9400d399",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_orange", {
 | 
			
		||||
		description = "Orange paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#ffa50099",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:paper_pink", {
 | 
			
		||||
		description = "Pink paper",
 | 
			
		||||
		inventory_image = "default_paper.png^[colorize:#ffc0cb99",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	-- string --
 | 
			
		||||
	
 | 
			
		||||
		minetest.register_craftitem("christmas_craft:red_ribbon", {
 | 
			
		||||
		description = "Red Ribbon",
 | 
			
		||||
		inventory_image = "christmas_craft_red_ribbon.png",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
	-- wish list --
 | 
			
		||||
	
 | 
			
		||||
	minetest.register_craftitem("christmas_craft:wish_list", {
 | 
			
		||||
		description = "Wish list",
 | 
			
		||||
		inventory_image = "christmas_craft_which_list.png",
 | 
			
		||||
		stack_max = 99,
 | 
			
		||||
		liquids_pointable = false,
 | 
			
		||||
	})
 | 
			
		||||
	
 | 
			
		||||
------------
 | 
			
		||||
 | 
			
		||||
-- minetest.register_craftitem("christmas_craft:snow_ball", {
 | 
			
		||||
--	description = "Snow ball",
 | 
			
		||||
--	inventory_image = "snow_ball.png",
 | 
			
		||||
--	stack_max = 16,
 | 
			
		||||
--	liquids_pointable = false, 
 | 
			
		||||
--})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- crafts --
 | 
			
		||||
 | 
			
		||||
--overwrite the default stick
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":default:stick", {
 | 
			
		||||
@@ -596,7 +71,7 @@ minetest.register_node(":default:stick", {
 | 
			
		||||
	sounds = default.node_sound_defaults(),
 | 
			
		||||
})
 | 
			
		||||
-- complex node  --
 | 
			
		||||
 | 
			
		||||
--[[
 | 
			
		||||
snowball_DAMAGE=0.5
 | 
			
		||||
snowball_GRAVITY=9
 | 
			
		||||
snowball_VELOCITY=19
 | 
			
		||||
@@ -629,6 +104,7 @@ snow_snowball_ENTITY={
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
--Snowball_entity.on_step()--> called when snowball is moving.
 | 
			
		||||
 | 
			
		||||
snow_snowball_ENTITY.on_step = function(self, dtime)
 | 
			
		||||
	self.timer=self.timer+dtime
 | 
			
		||||
	local pos = self.object:getpos()
 | 
			
		||||
@@ -688,6 +164,4 @@ minetest.register_node("christmas_craft:snow", {
 | 
			
		||||
		footstep = {name="default_gravel_footstep", gain=0.45},
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
]]--
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										64
									
								
								snow.lua
									
									
									
									
									
								
							
							
						
						@@ -3,7 +3,7 @@ print (" ---- Overrider christmas_craft = true! ---- ")
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":default:dirt_with_grass", {
 | 
			
		||||
	description = "Dirt with Grass",
 | 
			
		||||
	tiles = {"snow.png", "default_dirt.png", "grass_w_snow_side.png"},
 | 
			
		||||
	tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_snow_side.png"},
 | 
			
		||||
	is_ground_content = true,
 | 
			
		||||
	groups = {crumbly=3,soil=1},
 | 
			
		||||
	drop = {
 | 
			
		||||
@@ -16,11 +16,68 @@ minetest.register_node(":default:dirt_with_grass", {
 | 
			
		||||
	}),
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":default:leaves", {
 | 
			
		||||
	description = "Leaves",
 | 
			
		||||
	drawtype = "allfaces_optional",
 | 
			
		||||
	waving = 1,
 | 
			
		||||
	visual_scale = 1.3,
 | 
			
		||||
	tiles = {"christmas_leaves_side.png"},
 | 
			
		||||
	special_tiles = {"default_leaves_simple.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	is_ground_content = false,
 | 
			
		||||
	groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
 | 
			
		||||
	drop = {
 | 
			
		||||
		max_items = 1,
 | 
			
		||||
		items = {
 | 
			
		||||
			{
 | 
			
		||||
				-- player will get sapling with 1/20 chance
 | 
			
		||||
				items = {'default:sapling'},
 | 
			
		||||
				rarity = 20,
 | 
			
		||||
			},
 | 
			
		||||
			{
 | 
			
		||||
				-- player will get leaves only if he get no saplings,
 | 
			
		||||
				-- this is because max_items is 1
 | 
			
		||||
				items = {'default:leaves'},
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
 | 
			
		||||
	after_place_node = default.after_place_leaves,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
minetest.register_node(":default:aspen_leaves", {
 | 
			
		||||
	description = "Aspen Leaves",
 | 
			
		||||
	drawtype = "allfaces_optional",
 | 
			
		||||
	visual_scale = 1.3,
 | 
			
		||||
	tiles = {"christmas_aspen_leaves.png"},
 | 
			
		||||
	waving = 1,
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	is_ground_content = false,
 | 
			
		||||
	groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
 | 
			
		||||
	drop = {
 | 
			
		||||
		max_items = 1,
 | 
			
		||||
		items = {
 | 
			
		||||
			{items = {"default:aspen_sapling"}, rarity = 20},
 | 
			
		||||
			{items = {"default:aspen_leaves"}}
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	sounds = default.node_sound_leaves_defaults(),
 | 
			
		||||
 | 
			
		||||
	after_place_node = default.after_place_leaves,
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
-- old code
 | 
			
		||||
--[[
 | 
			
		||||
minetest.register_node(":default:leaves", {
 | 
			
		||||
	description = "Leaves",
 | 
			
		||||
	drawtype = "nodebox",
 | 
			
		||||
	visual_scale = 1.3,
 | 
			
		||||
	tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
 | 
			
		||||
	tiles = {"default_snow.png", "christmas_leaves_bot.png", "christmas_leaves_side.png"},
 | 
			
		||||
	paramtype = "light",
 | 
			
		||||
	groups = {snappy=3, leafdecay=3, flammable=2, leaves=1},
 | 
			
		||||
	drop = {
 | 
			
		||||
@@ -54,9 +111,8 @@ minetest.register_node(":default:leaves", {
 | 
			
		||||
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
]]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
print (" ---- Overrider christmas_craft [OK] ---- ")
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
| 
		 Before Width: | Height: | Size: 211 B  | 
| 
		 Before Width: | Height: | Size: 808 B  | 
| 
		 Before Width: | Height: | Size: 208 B  | 
| 
		 Before Width: | Height: | Size: 300 B  | 
| 
		 Before Width: | Height: | Size: 303 B  | 
| 
		 Before Width: | Height: | Size: 304 B  | 
| 
		 Before Width: | Height: | Size: 253 B  | 
| 
		 Before Width: | Height: | Size: 304 B  | 
| 
		 Before Width: | Height: | Size: 243 B  | 
| 
		 Before Width: | Height: | Size: 304 B  | 
| 
		 Before Width: | Height: | Size: 304 B  | 
| 
		 Before Width: | Height: | Size: 203 B  | 
| 
		 Before Width: | Height: | Size: 265 B  | 
| 
		 Before Width: | Height: | Size: 265 B  | 
| 
		 Before Width: | Height: | Size: 258 B  | 
| 
		 Before Width: | Height: | Size: 250 B  | 
| 
		 Before Width: | Height: | Size: 264 B  | 
| 
		 Before Width: | Height: | Size: 214 B  | 
| 
		 Before Width: | Height: | Size: 257 B  | 
| 
		 Before Width: | Height: | Size: 266 B  | 
| 
		 Before Width: | Height: | Size: 127 B  | 
| 
		 Before Width: | Height: | Size: 124 B  | 
| 
		 Before Width: | Height: | Size: 138 B  | 
| 
		 Before Width: | Height: | Size: 602 B  | 
| 
		 Before Width: | Height: | Size: 434 B  | 
| 
		 Before Width: | Height: | Size: 114 B  | 
| 
		 Before Width: | Height: | Size: 151 B  | 
| 
		 Before Width: | Height: | Size: 114 B  | 
| 
		 Before Width: | Height: | Size: 136 B  | 
| 
		 Before Width: | Height: | Size: 126 B  | 
| 
		 Before Width: | Height: | Size: 124 B  | 
| 
		 Before Width: | Height: | Size: 125 B  | 
| 
		 Before Width: | Height: | Size: 184 B  | 
| 
		 Before Width: | Height: | Size: 136 B  | 
| 
		 Before Width: | Height: | Size: 211 B  | 
| 
		 Before Width: | Height: | Size: 304 B  | 
| 
		 Before Width: | Height: | Size: 208 B  | 
| 
		 Before Width: | Height: | Size: 602 B  | 
| 
		 Before Width: | Height: | Size: 226 B  | 
| 
		 Before Width: | Height: | Size: 211 B  | 
| 
		 Before Width: | Height: | Size: 138 B  | 
| 
		 Before Width: | Height: | Size: 128 B  | 
| 
		 Before Width: | Height: | Size: 128 B  | 
| 
		 Before Width: | Height: | Size: 139 B  | 
| 
		 Before Width: | Height: | Size: 139 B  | 
| 
		 Before Width: | Height: | Size: 122 B  | 
| 
		 Before Width: | Height: | Size: 119 B  | 
| 
		 Before Width: | Height: | Size: 119 B  | 
| 
		 Before Width: | Height: | Size: 133 B  | 
| 
		 Before Width: | Height: | Size: 133 B  | 
| 
		 Before Width: | Height: | Size: 176 B  | 
| 
		 Before Width: | Height: | Size: 150 B  | 
| 
		 Before Width: | Height: | Size: 150 B  | 
| 
		 Before Width: | Height: | Size: 175 B  | 
| 
		 Before Width: | Height: | Size: 175 B  | 
| 
		 Before Width: | Height: | Size: 317 B  | 
| 
		 Before Width: | Height: | Size: 263 B  | 
| 
		 Before Width: | Height: | Size: 342 B  | 
| 
		 Before Width: | Height: | Size: 258 B  | 
| 
		 Before Width: | Height: | Size: 258 B  | 
| 
		 Before Width: | Height: | Size: 387 B  | 
| 
		 Before Width: | Height: | Size: 211 B  | 
| 
		 Before Width: | Height: | Size: 304 B  |