
data merge entity @s {HandItems:[{id:wooden_sword,Count:1b,tag:{Unbreakable:1b,Armory:1b,HideFlags:7,item_uuid:127,name:lightsaber,type:weapon,rank:b,cost:0,element:None,use:None,stats:{attack_damage:[{value:5.3,slot:mainhand},{value:5.3,slot:offhand}],attack_speed:[{value:-2.2,slot:mainhand},{value:-2.2,slot:offhand}]},CustomModelData:3301,display:{Name:'[{"translate":"lightsaber.name","color":"#58DE0B","bold":true,"italic":false,"underlined":true}]',Lore:['[{"translate":"lightsaber.l0","color":"dark_gray","italic":false}]','[{"text":"","color":"dark_gray","italic":false}]','[{"translate":"enchant.burning_slash.name","color":"gray","italic":false},{"translate":"enchant.burning_slash.l0","color":"dark_gray","italic":true}]','[{"text":"","color":"dark_gray","italic":false}]','[{"translate":"rank","color":"gray","italic":false},{"translate":": ","color":"gray","italic":false},{"translate":"B","color":"dark_purple","italic":false}]','[{"translate":"","color":"gray","italic":false},{"translate":"stats","color":"gray","italic":false},{"translate":": ","color":"gray","italic":false}]','[{"translate":"  \\u2022 +5.3","color":"dark_gray","italic":true},{"translate":" \\uf811","color":"white","italic":true},{"translate":" (","color":"dark_gray","italic":true},{"translate":"hand","color":"dark_gray","italic":true},{"translate":")","color":"dark_gray","italic":true}]','[{"translate":"  \\u2022 -2.2","color":"dark_gray","italic":true},{"translate":" \\uf812","color":"white","italic":true},{"translate":" (","color":"dark_gray","italic":true},{"translate":"hand","color":"dark_gray","italic":true},{"translate":")","color":"dark_gray","italic":true}]']},Enchantments:[{}],AttributeModifiers:[{AttributeName:"generic.attack_speed",Name:"generic.attack_speed",Amount:0,Operation:0,UUID:[I;1,2,3,4],Slot:"mainhand"}]}},{}]}

data merge entity @s {DisabledSlots:4144703,ShowArms:1b,CustomNameVisible:1b,CustomName:'[{"translate":"lightsaber.name","color":"#58DE0B","bold":true,"italic":false,"underlined":true}]'}

tag @e[tag=ingame_items,limit=1] add lightsaber
scoreboard players add lightsaber times_appeared 1