This is a minecraft entity behavior pack code template but its scratch code.. I just used the way how the minecraft behavior pack markup is used and decided to make a template for any game where you have a player and lore and like data. Look inside
Pretty basic, used bridge ide to see how the code looks at how it pretty much functions kinda. Based off javascript code, since the minecraft behavior pack is a javascript ide for some reason. Some of it may be wrong sorry.