forked from mtcontrib/minetest-mod-snow
Add christmas easter egg.
This commit is contained in:
parent
191e94af02
commit
69ae37cc8e
10
init.lua
10
init.lua
@ -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.
|
||||||
|
BIN
textures/character_snow_man.png
Normal file
BIN
textures/character_snow_man.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
BIN
textures/character_snow_man_preview.png
Normal file
BIN
textures/character_snow_man_preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
textures/character_snow_man_preview_back.png
Normal file
BIN
textures/character_snow_man_preview_back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
Loading…
Reference in New Issue
Block a user