Updated to 2.0
13
README/License.txt
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2013
|
||||||
|
|
||||||
|
Copyright (C) 2013 Infinatum AKA Sean Emmett <thatraspberrypiserver.raspberryip.com/Infinatum_Minetest.com>
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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.
|
58
README/Read-me.txt
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
---------------------------------------------------
|
||||||
|
CHRISTMAS CRAFT MOD FOR MINETEST
|
||||||
|
---------------------------------------------------
|
||||||
|
0.2
|
||||||
|
|
||||||
|
ABOUT THE MOD
|
||||||
|
...................................................
|
||||||
|
|
||||||
|
Bring the joy of Christmas to Minetest. This mod adds
|
||||||
|
Christmas related things such as presents, baubles ,
|
||||||
|
decorations and more, also the mod can also allows you
|
||||||
|
to cover the grass with snow, and make things such as
|
||||||
|
snowmen. You can even have a snowball fight!
|
||||||
|
|
||||||
|
WHATS NEW?
|
||||||
|
....................................................
|
||||||
|
|
||||||
|
|
||||||
|
* New crafts for the items
|
||||||
|
* New crafts for the items
|
||||||
|
* More coloured Baubles
|
||||||
|
* Fire gives -0.5 of hearts per second
|
||||||
|
* More coloured presents
|
||||||
|
* bug fixes
|
||||||
|
* Some more stuff
|
||||||
|
|
||||||
|
HOW TO INSTALL?
|
||||||
|
....................................................
|
||||||
|
|
||||||
|
1. extract the "christmas_craft_0.2" folder
|
||||||
|
|
||||||
|
2. Move the "christmas_craft" to the mod folder in your mintest game files
|
||||||
|
|
||||||
|
3. Start Minetest
|
||||||
|
|
||||||
|
4. under the "Singleplayer" tab press the Configure tab
|
||||||
|
|
||||||
|
5. enable "christmas_craft" then press Save
|
||||||
|
|
||||||
|
6. enjoy the mod
|
||||||
|
|
||||||
|
OTHER STUFF
|
||||||
|
....................................................
|
||||||
|
CHRISTMAS CRAFT MOD FOR MINETEST BY INFINATUM
|
||||||
|
|
||||||
|
thankyou for useing the mod
|
||||||
|
|
||||||
|
If you find any bugs post on the minetest forum;
|
||||||
|
https://forum.minetest.net/viewtopic.php?pid=118855#p118855
|
||||||
|
|
||||||
|
|
||||||
|
Find out more about the mod on our wiki;
|
||||||
|
https://bitbucket.org/kingarthursteam/christmas-craft/wiki/Home
|
||||||
|
|
||||||
|
|
||||||
|
Find newer devs of the mod on my site;
|
||||||
|
http://thatraspberrypiserver.raspberryip.com/Infinatum_Minetest/christmas_craft
|
||||||
|
|
521
crafts.lua
@ -1,269 +1,296 @@
|
|||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"christmas_craft:snowman" 1',
|
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 = {
|
recipe = {
|
||||||
{"default:coal_lump","christmas_craft:snowball","default:coal_lump"},
|
{"default:coal_lump","christmas_craft:snowball","default:coal_lump"},
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"},
|
{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"},
|
||||||
{"default:coal_lump","default:coal_lump","default:coal_lump"},
|
{"default:coal_lump","default:coal_lump","default:coal_lump"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
------
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"christmas_craft:snow_block" 1',
|
output = "christmas_craft:christmas_star ",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball"},
|
{"","default:gold_ingot",""},
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball"},
|
{"default:gold_ingot","default:gold_ingot","default:gold_ingot"},
|
||||||
|
{"default:gold_ingot","","default:gold_ingot"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"christmas_craft:paper_blue" 1',
|
output = "christmas_craft:snowball 4",
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:mithril_nugget"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_red" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:iron_nugget"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_yellow" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:gold_nugget"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_green" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:cactus_bit"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_leaves" 4',
|
|
||||||
recipe = {
|
|
||||||
{"default:leaves"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:iron_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"default:iron_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:gold_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"moreores:gold_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:mithril_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"moreores:mithril_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:cactus_bit" 9',
|
|
||||||
recipe = {
|
|
||||||
{"default:cactus"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:tin_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"moreores:tin_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"default:iron_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget", "christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget", "christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget", "christmas_craft:iron_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"moreores:gold_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget", "christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget", "christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget", "christmas_craft:gold_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"moreores:mithril_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"default:cactus" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit", "christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit", "christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit", "christmas_craft:cactus_bit"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"moreores:tin_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget", "christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget", "christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget", "christmas_craft:tin_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:red_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:iron_nugget", "default:stick","christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "default:glass","christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget","christmas_craft:iron_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:yellow_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:gold_nugget", "default:stick","christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "default:glass","christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget","christmas_craft:gold_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:blue_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:mithril_nugget", "default:stick","christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "default:glass","christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget","christmas_craft:mithril_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:green_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:cactus_bit", "default:stick","christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "default:glass","christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit","christmas_craft:cactus_bit"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:silver_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:tin_nugget", "default:stick","christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "default:glass","christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget","christmas_craft:tin_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present" 1',
|
|
||||||
recipe = {
|
|
||||||
{"default:paper", "default:paper","default:paper"},
|
|
||||||
{"default:paper", "default:mese","default:paper"},
|
|
||||||
{"default:paper", "default:paper","default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- paper --
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_green" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_green", "christmas_craft:paper_green","christmas_craft:paper_green"},
|
|
||||||
{"christmas_craft:paper_green", "default:mese","christmas_craft:paper_green"},
|
|
||||||
{"christmas_craft:paper_green", "christmas_craft:paper_green","christmas_craft:paper_green"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_yellow" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_yellow", "christmas_craft:paper_yellow","christmas_craft:paper_yellow"},
|
|
||||||
{"christmas_craft:paper_yellow", "default:mese","christmas_craft:paper_yellow"},
|
|
||||||
{"christmas_craft:paper_yellow", "christmas_craft:paper_yellow","christmas_craft:paper_yellow"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_red" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_red", "christmas_craft:paper_red","christmas_craft:paper_red"},
|
|
||||||
{"christmas_craft:paper_red", "default:mese","christmas_craft:paper_red"},
|
|
||||||
{"christmas_craft:paper_red", "christmas_craft:paper_red","christmas_craft:paper_red"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_blue" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_blue", "christmas_craft:paper_blue","christmas_craft:paper_blue"},
|
|
||||||
{"christmas_craft:paper_blue", "default:mese","christmas_craft:paper_blue"},
|
|
||||||
{"christmas_craft:paper_blue", "christmas_craft:paper_blue","christmas_craft:paper_blue"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_wreath" 1',
|
|
||||||
recipe = {
|
|
||||||
{"", "christmas_craft:christmas_leaves",""},
|
|
||||||
{"christmas_craft:christmas_leaves", "","christmas_craft:christmas_leaves"},
|
|
||||||
{"", "christmas_craft:christmas_leaves",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_star" 1',
|
|
||||||
recipe = {
|
|
||||||
{"", "moreores:gold_ingot",""},
|
|
||||||
{"moreores:gold_ingot", "moreores:gold_ingot","moreores:gold_ingot"},
|
|
||||||
{"", "moreores:gold_ingot",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_lights" 18',
|
|
||||||
recipe = {
|
|
||||||
{"default:mese","default:mese"},
|
|
||||||
{"default:glass","default:glass"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:snowball" 4',
|
|
||||||
recipe = {
|
recipe = {
|
||||||
{"christmas_craft:snow_block"},
|
{"christmas_craft:snow_block"},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
--------------------------
|
||||||
|
-- baubles -
|
||||||
|
--------------------------
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = '"christmas_craft:snow" 3',
|
output = "christmas_craft:red_baubles 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"},
|
{"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"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
813
init - Copy.lua
@ -1,813 +0,0 @@
|
|||||||
-- 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:Christmas_present", {
|
|
||||||
description = "Christmas present ",
|
|
||||||
tiles = {"present_top.png", "present_bottom.png", "present_side.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_gr.png", "present_bottom_gr.png", "present_side_gr.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_bl.png", "present_bottom_bl.png", "present_side_bl.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_re.png", "present_bottom_re.png", "present_side_re.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_ye.png", "present_bottom_ye.png", "present_side_ye.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:red_baubles", {
|
|
||||||
description = "Red Baubles",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
tiles = {"red_baubles.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {crumbly=3},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:yellow_baubles", {
|
|
||||||
description = "Yellow Baubles",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
tiles = {"yellow_baubles.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {crumbly=3},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:blue_baubles", {
|
|
||||||
description = "Blue Baubles",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
tiles = {"blue_baubles.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {crumbly=3},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:green_baubles", {
|
|
||||||
description = "Green Baubles",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
tiles = {"green_baubles.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {crumbly=3},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:silver_baubles", {
|
|
||||||
description = "Silver Baubles",
|
|
||||||
drawtype = "plantlike",
|
|
||||||
tiles = {"silver_baubles.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {crumbly=3},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
-- items --
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_blue", {
|
|
||||||
description = "Blue paper",
|
|
||||||
inventory_image = "paper_bl.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_yellow", {
|
|
||||||
description = "Yellow paper",
|
|
||||||
inventory_image = "paper_ye.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_green", {
|
|
||||||
description = "Green paper",
|
|
||||||
inventory_image = "paper_gr.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_red", {
|
|
||||||
description = "Red paper",
|
|
||||||
inventory_image = "paper_re.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:iron_nugget", {
|
|
||||||
description = "Iron nugget",
|
|
||||||
inventory_image = "iron_nugget.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:tin_nugget", {
|
|
||||||
description = "Tin nugget",
|
|
||||||
inventory_image = "tin_nugget.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,
|
|
||||||
--})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:gold_nugget", {
|
|
||||||
description = "Gold nugget",
|
|
||||||
inventory_image = "gold_nugget.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:mithril_nugget", {
|
|
||||||
description = "Mithril nugget",
|
|
||||||
inventory_image = "mithril_nugget.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:cactus_bit", {
|
|
||||||
description = "Cactus_bit",
|
|
||||||
inventory_image = "Cactus_bit.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- crafts --
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:snowman" 1',
|
|
||||||
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:snow_block" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball"},
|
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_blue" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:mithril_nugget"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_red" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:iron_nugget"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_yellow" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:gold_nugget"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:paper_green" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:cactus_bit"},
|
|
||||||
{"default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_leaves" 4',
|
|
||||||
recipe = {
|
|
||||||
{"default:leaves"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:iron_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"default:iron_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:gold_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"moreores:gold_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:mithril_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"moreores:mithril_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:cactus_bit" 9',
|
|
||||||
recipe = {
|
|
||||||
{"default:cactus"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:tin_nugget" 9',
|
|
||||||
recipe = {
|
|
||||||
{"moreores:tin_lump"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"default:iron_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget", "christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget", "christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget", "christmas_craft:iron_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"moreores:gold_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget", "christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget", "christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget", "christmas_craft:gold_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"moreores:mithril_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"default:cactus" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit", "christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit", "christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit", "christmas_craft:cactus_bit"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"moreores:tin_lump" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget", "christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget", "christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget", "christmas_craft:tin_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:red_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:iron_nugget", "default:stick","christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "default:glass","christmas_craft:iron_nugget"},
|
|
||||||
{"christmas_craft:iron_nugget", "christmas_craft:iron_nugget","christmas_craft:iron_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:yellow_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:gold_nugget", "default:stick","christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "default:glass","christmas_craft:gold_nugget"},
|
|
||||||
{"christmas_craft:gold_nugget", "christmas_craft:gold_nugget","christmas_craft:gold_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:blue_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:mithril_nugget", "default:stick","christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "default:glass","christmas_craft:mithril_nugget"},
|
|
||||||
{"christmas_craft:mithril_nugget", "christmas_craft:mithril_nugget","christmas_craft:mithril_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:green_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:cactus_bit", "default:stick","christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "default:glass","christmas_craft:cactus_bit"},
|
|
||||||
{"christmas_craft:cactus_bit", "christmas_craft:cactus_bit","christmas_craft:cactus_bit"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:silver_baubles" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:tin_nugget", "default:stick","christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "default:glass","christmas_craft:tin_nugget"},
|
|
||||||
{"christmas_craft:tin_nugget", "christmas_craft:tin_nugget","christmas_craft:tin_nugget"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present" 1',
|
|
||||||
recipe = {
|
|
||||||
{"default:paper", "default:paper","default:paper"},
|
|
||||||
{"default:paper", "default:mese","default:paper"},
|
|
||||||
{"default:paper", "default:paper","default:paper"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- paper --
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_green" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_green", "christmas_craft:paper_green","christmas_craft:paper_green"},
|
|
||||||
{"christmas_craft:paper_green", "default:mese","christmas_craft:paper_green"},
|
|
||||||
{"christmas_craft:paper_green", "christmas_craft:paper_green","christmas_craft:paper_green"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_yellow" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_yellow", "christmas_craft:paper_yellow","christmas_craft:paper_yellow"},
|
|
||||||
{"christmas_craft:paper_yellow", "default:mese","christmas_craft:paper_yellow"},
|
|
||||||
{"christmas_craft:paper_yellow", "christmas_craft:paper_yellow","christmas_craft:paper_yellow"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_red" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_red", "christmas_craft:paper_red","christmas_craft:paper_red"},
|
|
||||||
{"christmas_craft:paper_red", "default:mese","christmas_craft:paper_red"},
|
|
||||||
{"christmas_craft:paper_red", "christmas_craft:paper_red","christmas_craft:paper_red"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:Christmas_present_blue" 1',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:paper_blue", "christmas_craft:paper_blue","christmas_craft:paper_blue"},
|
|
||||||
{"christmas_craft:paper_blue", "default:mese","christmas_craft:paper_blue"},
|
|
||||||
{"christmas_craft:paper_blue", "christmas_craft:paper_blue","christmas_craft:paper_blue"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_wreath" 1',
|
|
||||||
recipe = {
|
|
||||||
{"", "christmas_craft:christmas_leaves",""},
|
|
||||||
{"christmas_craft:christmas_leaves", "","christmas_craft:christmas_leaves"},
|
|
||||||
{"", "christmas_craft:christmas_leaves",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_star" 1',
|
|
||||||
recipe = {
|
|
||||||
{"", "moreores:gold_ingot",""},
|
|
||||||
{"moreores:gold_ingot", "moreores:gold_ingot","moreores:gold_ingot"},
|
|
||||||
{"", "moreores:gold_ingot",""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:christmas_lights" 18',
|
|
||||||
recipe = {
|
|
||||||
{"default:mese","default:mese"},
|
|
||||||
{"default:glass","default:glass"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:snowball" 4',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:snow_block"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craft({
|
|
||||||
output = '"christmas_craft:snow" 3',
|
|
||||||
recipe = {
|
|
||||||
{"christmas_craft:snowball","christmas_craft:snowball","christmas_craft:snowball"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- override --
|
|
||||||
|
|
||||||
minetest.register_node(":default:dirt_with_grass", {
|
|
||||||
description = "Dirt with Grass",
|
|
||||||
tiles = {"snow.png", "default_dirt.png", "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},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":default:leaves", {
|
|
||||||
description = "Leaves",
|
|
||||||
drawtype = "allfaces_optional",
|
|
||||||
visual_scale = 1.3,
|
|
||||||
tiles = {"leaves_w_snow.png"},
|
|
||||||
paramtype = "light",
|
|
||||||
groups = {snappy=3, leafdecay=3, flammable=2},
|
|
||||||
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(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":default:desert_sand", {
|
|
||||||
description = "Desert sand",
|
|
||||||
tiles = {"snow.png", "default_sand.png", "sand_w_snow_side.png"},
|
|
||||||
drop = {
|
|
||||||
max_items = 2, items = {
|
|
||||||
{items = {'default:desert_sand'}, rarity = 0,},
|
|
||||||
{items = {'christmas_craft:snowball'}, rarity = 0,},
|
|
||||||
}},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3, falling_node=1},
|
|
||||||
sounds = default.node_sound_sand_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":default:dirt_with_grass_footsteps", {
|
|
||||||
description = "Dirt with Grass and Footsteps",
|
|
||||||
tiles = {"snow_footstep"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3, not_in_creative_inventory=1},
|
|
||||||
drop = 'default:dirt',
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node(":default:stick", {
|
|
||||||
description = "stick",
|
|
||||||
drawtype = "torchlike",
|
|
||||||
--tiles = {"default_torch_on_floor.png", "default_torch_on_ceiling.png", "default_torch.png"},
|
|
||||||
tiles = {
|
|
||||||
{name="side_stick.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
|
|
||||||
},
|
|
||||||
inventory_image = "default_stick.png",
|
|
||||||
wield_image = "default_stick.png",
|
|
||||||
paramtype = "light",
|
|
||||||
paramtype2 = "wallmounted",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
walkable = false,
|
|
||||||
selection_box = {
|
|
||||||
type = "wallmounted",
|
|
||||||
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
|
|
||||||
},
|
|
||||||
groups = {choppy=2,dig_immediate=3,flammable=1},
|
|
||||||
legacy_wallmounted = true,
|
|
||||||
sounds = default.node_sound_defaults(),
|
|
||||||
})
|
|
||||||
|
|
||||||
-- complex node --
|
|
||||||
|
|
||||||
|
|
||||||
snowball_GRAVITY=9
|
|
||||||
snowball_VELOCITY=19
|
|
||||||
|
|
||||||
--Shoot snowball.
|
|
||||||
local snow_shoot_snowball=function (item, player, pointed_thing)
|
|
||||||
local playerpos=player:getpos()
|
|
||||||
local obj=minetest.env:add_entity({x=playerpos.x,y=playerpos.y+1.5,z=playerpos.z}, "christmas_craft:snowball_entity")
|
|
||||||
local dir=player:get_look_dir()
|
|
||||||
obj:setvelocity({x=dir.x*snowball_VELOCITY, y=dir.y*snowball_VELOCITY, z=dir.z*snowball_VELOCITY})
|
|
||||||
obj:setacceleration({x=dir.x*-3, y=-snowball_GRAVITY, z=dir.z*-3})
|
|
||||||
item:take_item()
|
|
||||||
return item
|
|
||||||
end
|
|
||||||
|
|
||||||
--The snowball Entity
|
|
||||||
snow_snowball_ENTITY={
|
|
||||||
physical = false,
|
|
||||||
timer=0,
|
|
||||||
textures = {"snowball.png"},
|
|
||||||
lastpos={},
|
|
||||||
collisionbox = {0,0,0,0,0,0},
|
|
||||||
}
|
|
||||||
|
|
||||||
--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()
|
|
||||||
local node = minetest.env:get_node(pos)
|
|
||||||
|
|
||||||
--Become item when hitting a node.
|
|
||||||
if self.lastpos.x~=nil then --If there is no lastpos for some reason.
|
|
||||||
if node.name ~= "air" then
|
|
||||||
minetest.env:place_node(self.lastpos,{name="air"})
|
|
||||||
self.object:remove()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Node will be added at last pos outside the node
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_entity("christmas_craft:snowball_entity", snow_snowball_ENTITY)
|
|
||||||
|
|
||||||
--Snowball.
|
|
||||||
minetest.register_craftitem("christmas_craft:snowball", {
|
|
||||||
Description = "Snowball",
|
|
||||||
inventory_image = "snowball.png",
|
|
||||||
on_use = snow_shoot_snowball,
|
|
||||||
})
|
|
||||||
|
|
||||||
--Snow.
|
|
||||||
minetest.register_node("christmas_craft:snow", {
|
|
||||||
tiles = {"snow.png"},
|
|
||||||
drawtype = "nodebox",
|
|
||||||
sunlight_propagates = true,
|
|
||||||
paramtype = "light",
|
|
||||||
param2 = nil,
|
|
||||||
--param2 is reserved for what vegetation is hiding inside.
|
|
||||||
--mapgen defines the vegetation.
|
|
||||||
--1 = Moss
|
|
||||||
groups = {crumbly=3,melts=1,falling_node=1},
|
|
||||||
buildable_to = true,
|
|
||||||
drop = 'christmas_craft:snowball',
|
|
||||||
node_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
selection_box = {
|
|
||||||
type = "fixed",
|
|
||||||
fixed = {
|
|
||||||
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name="default_gravel_footstep", gain=0.45},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
781
init.lua
@ -1,5 +1,6 @@
|
|||||||
--dofile(minetest.get_modpath("christmas_craft").."/mods.lua")--disabled because 4seasons is not installed
|
--dofile(minetest.get_modpath("christmas_craft").."/mods.lua")--disabled because 4seasons is not installed
|
||||||
--dofile("crafts.lua");--temporary disabled because cristmas is over
|
dofile(minetest.get_modpath("christmas_craft").."/crafts.lua") --temporary disabled because cristmas is over--
|
||||||
|
dofile(minetest.get_modpath("christmas_craft").."/settings.lua") -- makes it snow
|
||||||
-- blocks --
|
-- blocks --
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:snowman", {
|
minetest.register_node("christmas_craft:snowman", {
|
||||||
@ -76,274 +77,592 @@ minetest.register_node("christmas_craft:christmas_leaves", {
|
|||||||
sounds = default.node_sound_sand_defaults(),
|
sounds = default.node_sound_sand_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:Christmas_present", {
|
|
||||||
description = "Christmas present ",
|
|
||||||
tiles = {"present_top.png", "present_bottom.png", "present_side.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_gr.png", "present_bottom_gr.png", "present_side_gr.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_bl.png", "present_bottom_bl.png", "present_side_bl.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_re.png", "present_bottom_re.png", "present_side_re.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
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 = {"present_top_ye.png", "present_bottom_ye.png", "present_side_ye.png"},
|
|
||||||
is_ground_content = true,
|
|
||||||
groups = {crumbly=3},
|
|
||||||
drop = {
|
|
||||||
max_items = 1, items = {
|
|
||||||
{items = {'default:bookshelf'}, rarity = 10,},
|
|
||||||
{items = {'default:clay'}, rarity = 10,},
|
|
||||||
{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 = {'default:stone'}, rarity = 2,},
|
|
||||||
{items = {'diamonds:pick'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:shovel'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:axe'}, rarity = 70,},
|
|
||||||
{items = {'diamonds:block'}, rarity = 90,},
|
|
||||||
{items = {'fake_fire:flint_and_steel'}, rarity = 15,},
|
|
||||||
{items = {'default:chest_locked'}, rarity = 20,},
|
|
||||||
{items = {'default:ladder'}, rarity = 15,},
|
|
||||||
{items = {'default:jungletree'}, rarity = 30,},
|
|
||||||
{items = {'default:brick'}, rarity = 25,},
|
|
||||||
{items = {'default:dirt_with_grass'}, rarity = 30,},
|
|
||||||
}},
|
|
||||||
sounds = default.node_sound_dirt_defaults({
|
|
||||||
footstep = {name="default_grass_footstep", gain=0.4},
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:red_baubles", {
|
minetest.register_node("christmas_craft:red_baubles", {
|
||||||
description = "Red Baubles",
|
description = "Red Baubles",
|
||||||
drawtype = "plantlike",
|
drawtype = "nodebox",
|
||||||
tiles = {"red_baubles.png"},
|
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,
|
is_ground_content = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
sounds = default.node_sound_sand_defaults(),
|
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", {
|
minetest.register_node("christmas_craft:yellow_baubles", {
|
||||||
description = "Yellow Baubles",
|
description = "Yellow Baubles",
|
||||||
drawtype = "plantlike",
|
drawtype = "nodebox",
|
||||||
tiles = {"yellow_baubles.png"},
|
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,
|
is_ground_content = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
sounds = default.node_sound_sand_defaults(),
|
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},
|
||||||
|
|
||||||
minetest.register_node("christmas_craft:blue_baubles", {
|
-- side , top , side , side , bottom, side,
|
||||||
description = "Blue Baubles",
|
|
||||||
drawtype = "plantlike",
|
},
|
||||||
tiles = {"blue_baubles.png"},
|
},
|
||||||
is_ground_content = true,
|
selection_box = {
|
||||||
paramtype = "light",
|
type = "fixed",
|
||||||
groups = {crumbly=3},
|
fixed = {
|
||||||
sounds = default.node_sound_sand_defaults(),
|
{-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", {
|
minetest.register_node("christmas_craft:green_baubles", {
|
||||||
description = "Green Baubles",
|
description = "Green Baubles",
|
||||||
drawtype = "plantlike",
|
drawtype = "nodebox",
|
||||||
tiles = {"green_baubles.png"},
|
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,
|
is_ground_content = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
sounds = default.node_sound_sand_defaults(),
|
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", {
|
minetest.register_node("christmas_craft:silver_baubles", {
|
||||||
description = "Silver Baubles",
|
description = "Silver Baubles",
|
||||||
drawtype = "plantlike",
|
drawtype = "nodebox",
|
||||||
tiles = {"silver_baubles.png"},
|
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,
|
is_ground_content = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {crumbly=3},
|
groups = {crumbly=3},
|
||||||
sounds = default.node_sound_sand_defaults(),
|
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},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- items --
|
------------
|
||||||
|
--nodes--
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_blue", {
|
-- presents --
|
||||||
|
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
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},
|
||||||
|
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({
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
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 = {
|
||||||
|
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({
|
||||||
|
footstep = {name="default_grass_footstep", gain=0.4},
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
------------
|
||||||
|
|
||||||
|
------------
|
||||||
|
--Items--
|
||||||
|
|
||||||
|
-- paper --
|
||||||
|
|
||||||
|
minetest.register_craftitem("christmas_craft:paper_blue", {
|
||||||
description = "Blue paper",
|
description = "Blue paper",
|
||||||
inventory_image = "paper_bl.png",
|
inventory_image = "christmas_craft_paper_bl.png",
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_yellow", {
|
minetest.register_craftitem("christmas_craft:paper_yellow", {
|
||||||
description = "Yellow paper",
|
description = "Yellow paper",
|
||||||
inventory_image = "paper_ye.png",
|
inventory_image = "christmas_craft_paper_ye.png",
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_green", {
|
minetest.register_craftitem("christmas_craft:paper_green", {
|
||||||
description = "Green paper",
|
description = "Green paper",
|
||||||
inventory_image = "paper_gr.png",
|
inventory_image = "christmas_craft_paper_gr.png",
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:paper_red", {
|
minetest.register_craftitem("christmas_craft:paper_red", {
|
||||||
description = "Red paper",
|
description = "Red paper",
|
||||||
inventory_image = "paper_re.png",
|
inventory_image = "christmas_craft_paper_re.png",
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:iron_nugget", {
|
minetest.register_craftitem("christmas_craft:paper_violet", {
|
||||||
description = "Iron nugget",
|
description = "Violet paper",
|
||||||
inventory_image = "iron_nugget.png",
|
inventory_image = "christmas_craft_paper_vi.png",
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:tin_nugget", {
|
minetest.register_craftitem("christmas_craft:paper_orange", {
|
||||||
description = "Tin nugget",
|
description = "Orange paper",
|
||||||
inventory_image = "tin_nugget.png",
|
inventory_image = "christmas_craft_paper_or.png",
|
||||||
stack_max = 99,
|
stack_max = 99,
|
||||||
liquids_pointable = false,
|
liquids_pointable = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("christmas_craft:paper_pink", {
|
||||||
|
description = "Pink paper",
|
||||||
|
inventory_image = "christmas_craft_paper_pi.png",
|
||||||
|
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", {
|
-- minetest.register_craftitem("christmas_craft:snow_ball", {
|
||||||
-- description = "Snow ball",
|
-- description = "Snow ball",
|
||||||
@ -352,26 +671,6 @@ minetest.register_craftitem("christmas_craft:tin_nugget", {
|
|||||||
-- liquids_pointable = false,
|
-- liquids_pointable = false,
|
||||||
--})
|
--})
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:gold_nugget", {
|
|
||||||
description = "Gold nugget",
|
|
||||||
inventory_image = "gold_nugget.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:mithril_nugget", {
|
|
||||||
description = "Mithril nugget",
|
|
||||||
inventory_image = "mithril_nugget.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
minetest.register_craftitem("christmas_craft:cactus_bit", {
|
|
||||||
description = "Cactus_bit",
|
|
||||||
inventory_image = "Cactus_bit.png",
|
|
||||||
stack_max = 99,
|
|
||||||
liquids_pointable = false,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- crafts --
|
-- crafts --
|
||||||
|
|
||||||
@ -421,15 +720,22 @@ local snow_shoot_snowball=function (item, player, pointed_thing)
|
|||||||
return item
|
return item
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
--The snowball Entity
|
--The snowball Entity
|
||||||
snow_snowball_ENTITY={
|
snow_snowball_ENTITY={
|
||||||
physical = false,
|
physical = false,
|
||||||
timer=0,
|
timer=0,
|
||||||
|
damage=1,
|
||||||
|
gravity=10,
|
||||||
|
velocity=19,
|
||||||
|
range=1,
|
||||||
textures = {"snowball.png"},
|
textures = {"snowball.png"},
|
||||||
lastpos={},
|
lastpos={},
|
||||||
collisionbox = {0,0,0,0,0,0},
|
collisionbox = {-0.25,-0.25,-0.25, 0.25,0.25,0.25},
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
--Snowball_entity.on_step()--> called when snowball is moving.
|
--Snowball_entity.on_step()--> called when snowball is moving.
|
||||||
snow_snowball_ENTITY.on_step = function(self, dtime)
|
snow_snowball_ENTITY.on_step = function(self, dtime)
|
||||||
self.timer=self.timer+dtime
|
self.timer=self.timer+dtime
|
||||||
@ -439,11 +745,17 @@ snow_snowball_ENTITY.on_step = function(self, dtime)
|
|||||||
--Become item when hitting a node.
|
--Become item when hitting a node.
|
||||||
if self.lastpos.x~=nil then --If there is no lastpos for some reason.
|
if self.lastpos.x~=nil then --If there is no lastpos for some reason.
|
||||||
if node.name ~= "air" then
|
if node.name ~= "air" then
|
||||||
minetest.env:place_node(self.lastpos,{name="air"})
|
|
||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
|
if node.name == "default:water_source" then
|
||||||
|
minetest.sound_play("snowball_splash",
|
||||||
|
{pos = pos, gain = 1.0, max_hear_distance = 32,})
|
||||||
|
self.object:remove()
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Node will be added at last pos outside the node
|
self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Node will be added at last pos outside the node
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_entity("christmas_craft:snowball_entity", snow_snowball_ENTITY)
|
minetest.register_entity("christmas_craft:snowball_entity", snow_snowball_ENTITY)
|
||||||
@ -486,3 +798,4 @@ minetest.register_node("christmas_craft:snow", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
62
settings.lua
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
|
||||||
|
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"},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {crumbly=3,soil=1},
|
||||||
|
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},
|
||||||
|
}),
|
||||||
|
})
|
||||||
|
|
||||||
|
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"},
|
||||||
|
paramtype = "light",
|
||||||
|
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(),
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
selection_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
print (" ---- Overrider christmas_craft [OK] ---- ")
|
||||||
|
|
14
settings.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
--------------------------------------------------
|
||||||
|
-- CONFIGURATION ---------------------------------
|
||||||
|
--------------------------------------------------
|
||||||
|
|
||||||
|
-------------------------------------------------------------
|
||||||
|
-- Change settings by changing the values after the "=". ----
|
||||||
|
-------------------------------------------------------------
|
||||||
|
|
||||||
|
-- enabels mod support --
|
||||||
|
dofile.enable_4seasons = false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
sounds/snowball_splash.2.ogg
Normal file
BIN
sounds/snowball_splash.3.ogg
Normal file
BIN
sounds/snowball_splash.4.ogg
Normal file
BIN
sounds/snowball_splash.ogg
Normal file
BIN
textures/christmas_craft_baubles_side_bl.png
Normal file
After Width: | Height: | Size: 337 B |
BIN
textures/christmas_craft_baubles_side_gr.png
Normal file
After Width: | Height: | Size: 337 B |
BIN
textures/christmas_craft_baubles_side_or.png
Normal file
After Width: | Height: | Size: 335 B |
BIN
textures/christmas_craft_baubles_side_pi.png
Normal file
After Width: | Height: | Size: 335 B |
BIN
textures/christmas_craft_baubles_side_re.png
Normal file
After Width: | Height: | Size: 334 B |
BIN
textures/christmas_craft_baubles_side_si.png
Normal file
After Width: | Height: | Size: 317 B |
BIN
textures/christmas_craft_baubles_side_vi.png
Normal file
After Width: | Height: | Size: 341 B |
BIN
textures/christmas_craft_baubles_side_ye.png
Normal file
After Width: | Height: | Size: 340 B |
BIN
textures/christmas_craft_baubles_top.png
Normal file
After Width: | Height: | Size: 307 B |
BIN
textures/christmas_craft_baubles_top_bl.png
Normal file
After Width: | Height: | Size: 396 B |
BIN
textures/christmas_craft_baubles_top_gr.png
Normal file
After Width: | Height: | Size: 397 B |
BIN
textures/christmas_craft_baubles_top_or.png
Normal file
After Width: | Height: | Size: 391 B |
BIN
textures/christmas_craft_baubles_top_pi.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
textures/christmas_craft_baubles_top_re.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
textures/christmas_craft_baubles_top_si.png
Normal file
After Width: | Height: | Size: 363 B |
BIN
textures/christmas_craft_baubles_top_vi.png
Normal file
After Width: | Height: | Size: 393 B |
BIN
textures/christmas_craft_baubles_top_ye.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
textures/christmas_craft_bow_bottom.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
textures/christmas_craft_bow_side.png
Normal file
After Width: | Height: | Size: 172 B |
BIN
textures/christmas_craft_bow_top.png
Normal file
After Width: | Height: | Size: 230 B |
BIN
textures/christmas_craft_leaves_side.png
Normal file
After Width: | Height: | Size: 631 B |
BIN
textures/christmas_craft_leaves_top.png
Normal file
After Width: | Height: | Size: 494 B |
BIN
textures/christmas_craft_paper_bl.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
textures/christmas_craft_paper_gr.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
textures/christmas_craft_paper_or.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
textures/christmas_craft_paper_pi.png
Normal file
After Width: | Height: | Size: 241 B |
BIN
textures/christmas_craft_paper_re.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
textures/christmas_craft_paper_vi.png
Normal file
After Width: | Height: | Size: 244 B |
BIN
textures/christmas_craft_paper_ye.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
textures/christmas_craft_present_bl.png
Normal file
After Width: | Height: | Size: 187 B |
BIN
textures/christmas_craft_present_box.png
Normal file
After Width: | Height: | Size: 236 B |
BIN
textures/christmas_craft_present_gr.png
Normal file
After Width: | Height: | Size: 186 B |
BIN
textures/christmas_craft_present_or.png
Normal file
After Width: | Height: | Size: 188 B |
BIN
textures/christmas_craft_present_pi.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
textures/christmas_craft_present_re.png
Normal file
After Width: | Height: | Size: 190 B |
BIN
textures/christmas_craft_present_vi.png
Normal file
After Width: | Height: | Size: 195 B |
BIN
textures/christmas_craft_present_wh.png
Normal file
After Width: | Height: | Size: 184 B |
BIN
textures/christmas_craft_present_ye.png
Normal file
After Width: | Height: | Size: 192 B |
BIN
textures/christmas_craft_red_ribbon.png
Normal file
After Width: | Height: | Size: 291 B |
BIN
textures/christmas_craft_which_list.png
Normal file
After Width: | Height: | Size: 250 B |
Before Width: | Height: | Size: 394 B After Width: | Height: | Size: 356 B |
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 3.4 KiB |