forked from mtcontrib/christmas_craft
Updated to 2.0
This commit is contained in:
815
init.lua
815
init.lua
@ -1,5 +1,6 @@
|
||||
--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 --
|
||||
|
||||
minetest.register_node("christmas_craft:snowman", {
|
||||
@ -76,274 +77,592 @@ minetest.register_node("christmas_craft:christmas_leaves", {
|
||||
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"},
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_re.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_re.png","christmas_craft_baubles_side_re.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("christmas_craft:yellow_baubles", {
|
||||
description = "Yellow Baubles",
|
||||
drawtype = "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"},
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_ye.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_ye.png","christmas_craft_baubles_side_ye.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("christmas_craft:green_baubles", {
|
||||
description = "Green Baubles",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"green_baubles.png"},
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_gr.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_gr.png","christmas_craft_baubles_side_gr.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_node("christmas_craft:blue_baubles", {
|
||||
description = "Blue Baubles",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_bl.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_bl.png","christmas_craft_baubles_side_bl.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("christmas_craft:orange_baubles", {
|
||||
description = "Orange Baubles",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_or.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_or.png","christmas_craft_baubles_side_or.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("christmas_craft:violet_baubles", {
|
||||
description = "Violet Baubles",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_vi.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_vi.png","christmas_craft_baubles_side_vi.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("christmas_craft:pink_baubles", {
|
||||
description = "Pink Baubles",
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_pi.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_pi.png","christmas_craft_baubles_side_pi.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_node("christmas_craft:silver_baubles", {
|
||||
description = "Silver Baubles",
|
||||
drawtype = "plantlike",
|
||||
tiles = {"silver_baubles.png"},
|
||||
drawtype = "nodebox",
|
||||
tiles = {"christmas_craft_baubles_top_si.png^christmas_craft_baubles_top.png","christmas_craft_baubles_top_si.png","christmas_craft_baubles_side_si.png"},
|
||||
is_ground_content = true,
|
||||
paramtype = "light",
|
||||
groups = {crumbly=3},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
|
||||
-- side , top , side , side , bottom, side,
|
||||
|
||||
},
|
||||
},
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{-0.25, 0.438, -0.25, 0.25, -0.05, 0.25},
|
||||
{-0.08, 0.5, -0.08, 0.08, -0.0, 0.08},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
-- items --
|
||||
------------
|
||||
--nodes--
|
||||
|
||||
-- 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_craftitem("christmas_craft:paper_blue", {
|
||||
description = "Blue paper",
|
||||
inventory_image = "paper_bl.png",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
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},
|
||||
}),
|
||||
})
|
||||
------------
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_yellow", {
|
||||
description = "Yellow paper",
|
||||
inventory_image = "paper_ye.png",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
------------
|
||||
--Items--
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_green", {
|
||||
description = "Green paper",
|
||||
inventory_image = "paper_gr.png",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
-- paper --
|
||||
|
||||
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:paper_blue", {
|
||||
description = "Blue paper",
|
||||
inventory_image = "christmas_craft_paper_bl.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:paper_yellow", {
|
||||
description = "Yellow paper",
|
||||
inventory_image = "christmas_craft_paper_ye.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:paper_green", {
|
||||
description = "Green paper",
|
||||
inventory_image = "christmas_craft_paper_gr.png",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_red", {
|
||||
description = "Red paper",
|
||||
inventory_image = "christmas_craft_paper_re.png",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_violet", {
|
||||
description = "Violet paper",
|
||||
inventory_image = "christmas_craft_paper_vi.png",
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_orange", {
|
||||
description = "Orange paper",
|
||||
inventory_image = "christmas_craft_paper_or.png",
|
||||
stack_max = 99,
|
||||
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", {
|
||||
-- description = "Snow ball",
|
||||
@ -352,26 +671,6 @@ minetest.register_craftitem("christmas_craft:tin_nugget", {
|
||||
-- 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 --
|
||||
|
||||
@ -421,15 +720,22 @@ local snow_shoot_snowball=function (item, player, pointed_thing)
|
||||
return item
|
||||
end
|
||||
|
||||
|
||||
--The snowball Entity
|
||||
snow_snowball_ENTITY={
|
||||
physical = false,
|
||||
timer=0,
|
||||
damage=1,
|
||||
gravity=10,
|
||||
velocity=19,
|
||||
range=1,
|
||||
textures = {"snowball.png"},
|
||||
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.
|
||||
snow_snowball_ENTITY.on_step = function(self, dtime)
|
||||
self.timer=self.timer+dtime
|
||||
@ -439,11 +745,17 @@ snow_snowball_ENTITY.on_step = function(self, dtime)
|
||||
--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
|
||||
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
|
||||
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)
|
||||
@ -486,3 +798,4 @@ minetest.register_node("christmas_craft:snow", {
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user