------------------- -- Warrior class -- ------------------- -- -- See https://github.com/Ombridride/minetest-minetestforfun-server/issues/113 -- pclasses.api.register_class("warrior", { on_assigned = function(pname) minetest.sound_play("pclasses_full_warrior") minetest.chat_send_player(pname, "You are now a warrior") sprint.set_maxstamina(pname, 20) minetest.log("action", "[PClasses] Player " .. pname .. " becomes a warrior") end, on_unassigned = function(pname) sprint.set_default_maxstamina(pname) end, switch_params = { color = {r = 06, g = 06, b = 30}, tile = "default_steel_block.png", holo_item = "default:dungeon_master_s_blood_sword" } }) pclasses.api.reserve_item("warrior", "moreores:sword_mithril") pclasses.api.reserve_item("warrior", "default:dungeon_master_s_blood_sword") pclasses.api.reserve_item("warrior", "3d_armor:helmet_blackmithril") pclasses.api.reserve_item("warrior", "3d_armor:chestplate_blackmithril") pclasses.api.reserve_item("warrior", "3d_armor:boots_blackmithril") pclasses.api.reserve_item("warrior", "3d_armor:leggings_black_mithril") pclasses.api.reserve_item("warrior", "shields:shield_blackmithril")