Add christmas easter egg.

This commit is contained in:
Splizard 2013-12-09 20:13:48 +13:00
parent 191e94af02
commit 69ae37cc8e
4 changed files with 8 additions and 2 deletions

View File

@ -22,8 +22,6 @@ dofile(minetest.get_modpath("snow").."/mapgen.lua")
dofile(minetest.get_modpath("snow").."/falling_snow.lua") dofile(minetest.get_modpath("snow").."/falling_snow.lua")
dofile(minetest.get_modpath("snow").."/sled.lua") dofile(minetest.get_modpath("snow").."/sled.lua")
local needles = { local needles = {
description = "Pine Needles", description = "Pine Needles",
drawtype = "allfaces_optional", drawtype = "allfaces_optional",
@ -51,11 +49,19 @@ local needles = {
} }
if snow.christmas_content then if snow.christmas_content then
--Cristmas trees.
needles["drop"]["items"][3] = { needles["drop"]["items"][3] = {
-- player will get xmas tree with 1/50 chance -- player will get xmas tree with 1/50 chance
items = {'snow:xmas_tree'}, items = {'snow:xmas_tree'},
rarity = 50, rarity = 50,
} }
--Christmas easter egg.
minetest.register_on_mapgen_init( function()
if skins then
skins.add("character_snow_man")
end
end)
end end
--Pine leaves. --Pine leaves.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB