attribute @s minecraft:max_health modifier add knight_class_max_health 0.3 add_multiplied_total
attribute @s minecraft:movement_speed modifier add knight_class_movement_speed -0.3 add_multiplied_total
attribute @s minecraft:attack_damage modifier add knight_attack_damage -0.2 add_multiplied_total
give @s echo_shard[custom_data={class_ability_item:1b},custom_name='{"color":"red","italic":false,"text":"Class Ability: Taunt"}',consumable={consume_seconds:0,sound:"entity.iron_golem.repair",has_consume_particles:false,on_consume_effects:[{type:"minecraft:play_sound",sound:"block.anvil.place"}]},use_cooldown={seconds:100},enchantment_glint_override=true]
give @s shield[custom_name='{"italic":false,"text":"Tattered Greatshield"}',enchantments={levels:{"kiwi:greatshield":1}},attribute_modifiers=[{id:"tattered_greatshield_max_health",type:"max_health",amount:2,operation:"add_value",slot:"hand"},{id:"tattered_greatshield_attack_damage",type:"attack_damage",amount:3,operation:"add_value",slot:"mainhand"},{id:"tattered_greatshield_attack_knockback",type:"attack_knockback",amount:1,operation:"add_value",slot:"hand"},{id:"tattered_greatshield_attack_speed",type:"attack_speed",amount:-3,operation:"add_value",slot:"mainhand"}]] 1
give @s player_head[profile={id:[I;1792681270,2028424825,-1314449682,-152931388],properties:[{name:"textures",value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODQ3M2QwODNjZDljMmY0ODQ2ZDJhYmNhMGQxN2IyNTJjYzVhODAxNGI1ZDVkNGM4N2MzYzU3ZTdlZjA2NDJhNSJ9fX0="}]},custom_name='{"italic":false,"text":"Fractured Knight Helmet"}',attribute_modifiers=[{id:"fractured_knight_helmet_max_health",type:"max_health",amount:1,operation:"add_value",slot:"head"},{id:"fractured_knight_helmet_armor",type:"armor",amount:3,operation:"add_value",slot:"head"}],enchantable={value:15}] 1
give @s netherite_chestplate[attribute_modifiers=[{id:"fractured_knight_chestplate_max_health",type:"max_health",amount:2,operation:"add_value",slot:"chest"},{id:"fractured_knight_chestplate_armor",type:"armor",amount:2,operation:"add_value",slot:"chest"}],custom_name='{"italic":false,"text":"Fractured Knight Chestplate"}'] 1
give @s netherite_leggings[attribute_modifiers=[{id:"fractured_knight_leggings_max_health",type:"max_health",amount:1,operation:"add_value",slot:"legs"},{id:"fractured_knight_leggings_armor",type:"armor",amount:2,operation:"add_value",slot:"legs"}],custom_name='{"italic":false,"text":"Fractured Knight Leggings"}'] 1
give @s netherite_boots[attribute_modifiers=[{id:"fractured_knight_boots_max_health",type:"max_health",amount:1,operation:"add_value",slot:"feet"},{id:"fractured_knight_boots_armor",type:"armor",amount:1,operation:"add_value",slot:"feet"}],custom_name='{"italic":false,"text":"Fractured Knight Boots"}'] 1
give @s minecraft:written_book[written_book_content={title:"The Code of Steel",author:"",pages:['{"text":"[Knight\'s Oath]\\n\\nAs a knight you are expected to take on enemies head-on and pull aggro so your teammates are able to deal damage.\\n\\nThankfully your kit has specialized you just for this as you have 30% more health than regular players."}','{"text":"[Utilizing Weaponry]\\n\\nIn exchange for your increased health you have decreased movement speed and attack damage.\\n\\nWeapons don\'t matter as much, focus your resources on creating the strongest armor instead."}','{"text":"[Taunt: The Ability]\\n\\nYour class ability allows you to pull, taunt, and stun enemies in a large radius.\\n\\nUse this at the start of battles or to gather enemies or create striking opportunities for your teammates."}','{"text":"[The Short Code]\\n\\n- Focus on your advantages, outlasting enemies is your priority.\\n\\n- Don\'t hesitate to use Taunt, the cooldown is relatively short.\\n\\n- A good timed Taunt can shift the pace of the battle."}']}] 1