package Ġcom . skill w . atts ystem . internal . listener Ċ Ċ import Ġcom . dest ro yst ok yo . paper . event . entity . Entity Remove From World Event Ċ import Ġcom . skill w . atts ystem . Attribute System Ċ import Ġcom . skill w . atts ystem . Attribute System . attribute DataManager Ċ import Ġio . lum ine . x ik age . my th ic mo bs . api . bukkit . events . My th ic Mob Spawn Event Ċ import Ġorg . bukkit . entity . Player Ċ import Ġorg . bukkit . event . entity . Entity Death Event Ċ import Ġtab ool ib . common . platform . event . Subscribe Event Ċ Ċ object ĠEntity Listener Ġ{ ĊĊĠĠĠ Ġ@ Subscribe Event ĊĠĠĠ Ġfun Ġon Entity Dead ( event : ĠEntity Death Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġliving Entity Ġ= Ġevent . entity ĊĠĠĠĠĠĠĠ Ġif Ġ( living Entity Ġ! is ĠPlayer ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAttribute System . attribute System API . remove ( living Entity . unique Id ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Subscribe Event ĊĠĠĠ Ġfun Ġon Entity Dead ( event : ĠEntity Remove From World Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġliving Entity Ġ= Ġevent . entity ĊĠĠĠĠĠĠĠ ĠAttribute System . attribute System API . remove ( living Entity . unique Id ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Subscribe Event ĊĠĠĠ Ġfun Ġon My th ic M obs Spawn ( event : ĠMy th ic Mob Spawn Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġattributes Ġ= Ġevent . mob Type . config . getString List (" Attributes ") ĊĠĠĠĠĠĠĠ Ġval Ġuuid Ġ= Ġevent . entity . unique Id ĊĠĠĠĠĠĠĠ ĠAttribute System . attribute System API . update ( uuid ) ĊĠĠĠĠĠĠĠ Ġattribute DataManager . addAttribute ( uuid , Ġ" MY TH IC - BASE - ATTRIBUTE ", Ġattributes , Ġfalse ) ĊĠĠĠ Ġ} Ċ }