Skip to content

Instantly share code, notes, and snippets.

minetest.register_on_chat_message(function(name, message)
local playername = name
quests.check_title(playername)
local title = quests.players[playername].title
name = title.." "..name
return name,message
end)
minetest.register_node("appearance:wardrobe",{
description = "Wardrobe - Change clothes",
drawtype = "normal",
paramtype = "light",
paramtype2 = "facedir",
tiles = {"appearance_wardrobe_top.png",
"appearance_wardrobe_top.png",
"appearance_wardrobe_top.png",
"appearance_wardrobe_top.png",
"appearance_wardrobe_top.png",
local skin = {}
-- Default player appearance
local c = math.random(10)
local col = tostring(c*10+80)
local tex = {"character2.png^character3.png^[colorize:#411600:"..col.."^character1.png",}
local function read_skin()
local f, err = io.open(minetest.get_worldpath() .. "/players.txt", "r")
2016-07-25 08:11:25: ERROR[Main]: ModError: Failed to load and run script from /home/don/edutech/bin/../mods/skin/init.lua:
2016-07-25 08:11:25: ERROR[Main]: /home/don/edutech/bin/../mods/skin/init.lua:73: Attempt to override non-existent item :
2016-07-25 08:11:25: ERROR[Main]: stack traceback:
2016-07-25 08:11:25: ERROR[Main]: [C]: in function 'error'
2016-07-25 08:11:25: ERROR[Main]: /home/don/edutech/bin/../builtin/game/register.lua:338: in function 'override_item'
2016-07-25 08:11:25: ERROR[Main]: /home/don/edutech/bin/../mods/skin/init.lua:73: in main chunk
2016-07-25 08:11:25: ERROR[Main]: Check debug.txt for details.
/*
Minetest
Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
Loaded texture: /home/don/minetest/games/minetest_game/menu/header.png
Loaded texture: /home/don/minetest/games/minetest_game/menu/icon.png
Loaded texture: /home/don/minetest/games/minimal/menu/icon.png
2016-05-17 10:32:29: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
[Biome Lib] Loaded
[Plantlife] "default:dirt_with_grass"
[Plantlife] "default:dirt_with_grass"
[Plantlife] "default:dirt_with_grass"
[Plantlife] "default:dirt_with_grass"
[Plantlife] "default:sand"
2016-05-13 13:03:13: WARNING[Main]: BanManager: creating /storage/emulated/0/Minetest/worlds/singleplayerworld/ipban.txt
2016-05-13 13:03:13: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-05-13 13:03:13: ERROR[Main]: loadSchematicFromFile: unable to open file '/storage/emulated/0/Minetest/games/minetest_game/mods/flowers/schematics/waterlily.mts'
2016-05-13 13:03:14: ACTION[Main]: .__ __ __
2016-05-13 13:03:14: ACTION[Main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2016-05-13 13:03:14: ACTION[Main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2016-05-13 13:03:14: ACTION[Main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2016-05-13 13:03:14: ACTION[Main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2016-05-13 13:03:14: ACTION[Main]: \/ \/ \/ \/ \/
-- Originally Teleport Request by Traxie21 and released with the WTFPL license
-- https://forum.minetest.net/viewtopic.php?id=4457
-- Updates by Zeno and ChaosWormz
-- New release by RobbieF under new mod: tps_teleport - http://blog.minetest.tv/teleport-request/
local timeout_delay = 60
-- Set to true to register tpr_admin priv
local regnewpriv = false