mirror of
https://bitbucket.org/kingarthursteam/christmas_craft.git
synced 2024-12-22 16:50:18 +01:00
906d0ad0b0
* Removed 4seasons Support * Removed Nodes which are now in the game (like snow node) * Removed old textures * Added more coloured items * Added candy cane nodes * Added Christmas food * Added new snow nodes * Updated mod so it supports the new version of minetest * Updated old parts of the mod with better code * Fixed some bugs
119 lines
2.7 KiB
Lua
119 lines
2.7 KiB
Lua
|
|
print (" ---- Overrider christmas_craft = true! ---- ")
|
|
|
|
minetest.register_node(":default:dirt_with_grass", {
|
|
description = "Dirt with Grass",
|
|
tiles = {"default_snow.png", "default_dirt.png", "default_dirt.png^default_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 = "allfaces_optional",
|
|
waving = 1,
|
|
visual_scale = 1.3,
|
|
tiles = {"christmas_leaves_side.png"},
|
|
special_tiles = {"default_leaves_simple.png"},
|
|
paramtype = "light",
|
|
is_ground_content = false,
|
|
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
|
drop = {
|
|
max_items = 1,
|
|
items = {
|
|
{
|
|
-- player will get sapling with 1/20 chance
|
|
items = {'default:sapling'},
|
|
rarity = 20,
|
|
},
|
|
{
|
|
-- player will get leaves only if he get no saplings,
|
|
-- this is because max_items is 1
|
|
items = {'default:leaves'},
|
|
}
|
|
}
|
|
},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = default.after_place_leaves,
|
|
})
|
|
|
|
|
|
minetest.register_node(":default:aspen_leaves", {
|
|
description = "Aspen Leaves",
|
|
drawtype = "allfaces_optional",
|
|
visual_scale = 1.3,
|
|
tiles = {"christmas_aspen_leaves.png"},
|
|
waving = 1,
|
|
paramtype = "light",
|
|
is_ground_content = false,
|
|
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
|
|
drop = {
|
|
max_items = 1,
|
|
items = {
|
|
{items = {"default:aspen_sapling"}, rarity = 20},
|
|
{items = {"default:aspen_leaves"}}
|
|
}
|
|
},
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_place_node = default.after_place_leaves,
|
|
})
|
|
|
|
|
|
|
|
-- old code
|
|
--[[
|
|
minetest.register_node(":default:leaves", {
|
|
description = "Leaves",
|
|
drawtype = "nodebox",
|
|
visual_scale = 1.3,
|
|
tiles = {"default_snow.png", "christmas_leaves_bot.png", "christmas_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] ---- ")
|