More colors and tweaks in general

This commit is contained in:
KaadmY 2017-05-11 14:03:08 -07:00
parent 029adbbe8b
commit 583925d611
4 changed files with 100 additions and 95 deletions

View File

@ -257,7 +257,7 @@ end)
minetest.register_on_joinplayer(
function(player)
local function welcome()
minetest.chat_send_player(player:get_player_name(), "Welcome to Pixture! Type /help for a list of commands.")
minetest.chat_send_player(player:get_player_name(), core.colorize("#0f0", "Welcome to Pixture! Type /help for a list of commands."))
end
minetest.after(1.0, welcome)

6
mods/goodies/depends.txt Normal file
View File

@ -0,0 +1,6 @@
default
farming
bed
mobs
gold?
jewels?

View File

@ -1,6 +1,6 @@
--
-- Goodies mod
-- By Kaadmy
-- By Kaadmy, for Pixture
--
goodies = {}

View File

@ -62,15 +62,14 @@ minetest.register_tool(
if own then
minetest.chat_send_player(
own,
player:get_player_name() .. " has broken into your locked chest!"
)
core.colorize("#f00", player:get_player_name() .. " has broken into your locked chest!"))
end
end
itemstack:add_wear(8200) -- about 8 uses
return itemstack
end,
})
})
minetest.register_craftitem(
"locks:lock",
@ -79,7 +78,7 @@ minetest.register_craftitem(
inventory_image = "locks_lock.png",
wield_image = "locks_lock.png",
})
})
minetest.register_craft(
{
@ -89,7 +88,7 @@ minetest.register_craft(
{"", "default:stick", ""},
{"default:stick", "", ""},
},
})
})
minetest.register_craft(
{
@ -99,7 +98,7 @@ minetest.register_craft(
{"default:ingot_steel", "", "default:ingot_steel"},
{"group:planks", "group:planks", "group:planks"},
},
})
})
minetest.register_node(
"locks:chest",
@ -188,14 +187,14 @@ minetest.register_node(
end
end,
on_blast = function() end,
})
})
minetest.register_craft(
{
output = "locks:chest",
type = "shapeless",
recipe = {"default:chest", "locks:lock"},
})
})
-- Achievements
@ -206,7 +205,7 @@ achievements.register_achievement(
description = "Craft a lock",
times = 1,
craftitem = "locks:lock",
})
})
achievements.register_achievement(
"burglar",
@ -215,6 +214,6 @@ achievements.register_achievement(
description = "Craft a lock pick",
times = 1,
craftitem = "locks:pick",
})
})
default.log("mod:locks", "loaded")