mirror of
https://bitbucket.org/kingarthursteam/christmas_craft.git
synced 2025-11-30 04:05:22 +01:00
Correction de bugs et ajout de plusieurs choses
This commit is contained in:
@@ -21,9 +21,26 @@ minetest.register_node("christmas_craft:present_box", {
|
||||
|
||||
-- coloured Present --
|
||||
|
||||
local function register_paper(name, description, colorCode, dye)
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_".. name, {
|
||||
description = description .."paper",
|
||||
inventory_image = "default_paper.png^[colorize:#" .. colorCode,
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'christmas_craft:paper_'.. name,
|
||||
recipe = {'dye:'..dye,'default:paper'},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
local function register_present(name, description, colorCode, dye)
|
||||
|
||||
minetest.register_node("christmas_craft:Christmas_present_"..name, {
|
||||
minetest.register_node("christmas_craft:christmas_present_"..name, {
|
||||
description = description .." Christmas Present",
|
||||
tiles = {
|
||||
"christmas_present.png^[colorize:#" ..colorCode.. "^christmas_bow_top.png",
|
||||
@@ -154,23 +171,6 @@ local function register_baubles(name, description, colorCode, dye)
|
||||
})
|
||||
end
|
||||
|
||||
local function register_paper(name, description, colorCode, dye)
|
||||
|
||||
minetest.register_craftitem("christmas_craft:paper_".. name, {
|
||||
description = description .."paper",
|
||||
inventory_image = "default_paper.png^[colorize:#" .. colorCode,
|
||||
stack_max = 99,
|
||||
liquids_pointable = false,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'christmas_craft:paper_'.. name,
|
||||
recipe = {'dye:'..dye,'default:paper'},
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
colours = {
|
||||
-- RGB Prime Colours --
|
||||
{name="red", code="FF000099", description="Red", dye="red"},
|
||||
@@ -183,7 +183,7 @@ colours = {
|
||||
-- RGB Other Colours --
|
||||
{name="orange", code="E5940099", description="Orange", dye="orange"},
|
||||
{name="darkgreen", code="004C0099", description="Dark Green", dye="dark_green"},
|
||||
{name="violet", code="80008099", description="Violet", dye="purple"},
|
||||
{name="violet", code="80008099", description="Violet", dye="violet"},
|
||||
{name="pink", code="FFC0CB99", description="Pink", dye="pink"},
|
||||
{name="brown", code="732c0b99", description="Brown", dye="brown"},
|
||||
-- MonoChrome --
|
||||
|
||||
Reference in New Issue
Block a user