added colorcode for blueprints
This commit is contained in:
parent
3c5951229c
commit
8ff83a65c8
1
mods/armor/depends.txt
Normal file
1
mods/armor/depends.txt
Normal file
@ -0,0 +1 @@
|
||||
blueprint
|
@ -11,7 +11,7 @@ function armor.register_armor(name, def)
|
||||
protection = def.protection,
|
||||
skin = def.skin .. "_chestplate.png",
|
||||
})
|
||||
minetest.register_craftitem(name .. "_cboots", {
|
||||
minetest.register_craftitem(name .. "_boots", {
|
||||
description = def.description .. " Boots",
|
||||
inventory_image = def.tex .. "_boots.png",
|
||||
protection = def.protection,
|
||||
@ -119,4 +119,27 @@ armor.register_armor("armor:diamond", {
|
||||
skin = "armor_skin_diamond"
|
||||
})
|
||||
|
||||
|
||||
--craft
|
||||
blueprint.register_blueprint("armor_diamond_chestplate", {
|
||||
description = "Diamond Chestplate",
|
||||
materials = {"furnace:iron_plate", "furnace:iron_plate", "default:diamond", "default:diamond"},
|
||||
out = "armor:diamond_chestplate",
|
||||
color = "red"
|
||||
})
|
||||
|
||||
blueprint.register_blueprint("armor_diamond_leggings", {
|
||||
description = "Diamond Leggings",
|
||||
materials = {"furnace:iron_plate", "default:diamond"},
|
||||
out = "armor:diamond_leggings",
|
||||
color = "red"
|
||||
})
|
||||
|
||||
blueprint.register_blueprint("armor_diamond_boots", {
|
||||
description = "Diamond Boots",
|
||||
materials = {"furnace:iron_plate", "default:diamond"},
|
||||
out = "armor:diamond_boots",
|
||||
color = "red"
|
||||
})
|
||||
|
||||
armor.load_armor()
|
||||
|
@ -7,7 +7,7 @@ function blueprint.register_blueprint(name, def)
|
||||
|
||||
minetest.register_craftitem(":blueprint:"..name, {
|
||||
description = "Blueprint : " .. def.description,
|
||||
inventory_image = "blueprint_blueprint.png",
|
||||
inventory_image = "blueprint_blueprint.png^[colorize:"..def.color..":80",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -112,11 +112,13 @@ minetest.register_abm({
|
||||
blueprint.register_blueprint("pipe", {
|
||||
description = "Pipe",
|
||||
materials = {"furnace:iron_plate"},
|
||||
out = "pipe:pipe"
|
||||
out = "pipe:pipe",
|
||||
color = "blue"
|
||||
})
|
||||
|
||||
blueprint.register_blueprint("pump", {
|
||||
description = "Pump",
|
||||
materials = {"furnace:iron_plate", "furnace:iron_plate", "furnace:iron_plate", "pipe:pipe"},
|
||||
out = "pipe:pump"
|
||||
out = "pipe:pump",
|
||||
color = "blue"
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user