voxel_knights/mods/xp/init.lua
LoneWolfHT 3c7bcbec75 Update
2019-02-11 21:20:26 -08:00

11 lines
295 B
Lua

minetest.register_craftitem("xp:xp", {
description = "Experience Points",
stack_max = 9999,
inventory_image = "xp_xp.png"
})
awards.register_on_unlock(function(name, def)
if def.xp then
minetest.get_player_by_name(name):get_inventory():add_item("xp", "xp:xp "..tostring(def.xp))
end
end)