#How to open the interface after an interaction with an entity and show its information "life, stage,
1 messages ยท Page 1 of 1 (latest)
There are 13 errors in this [code](#1136282322094796830 message).
Please read the attached file for the result.
@broken pine i think i can do this but not only with script 
I just need the interface of this script to open after interacting with dinopedia in the entity and its information to appear in the spaces of dinopedia.body
I think there are no world events that fire when an entity was being interacted.
You can use itemUse tho, and use the entity in front of the player as the approximation target of interaction. ( or do something in entity.json that allows direct interaction )
Then grab the data from the entity, within the scoreboard or dynamicProperty.
for "stage", you can edit the entity.json and make each time it grows, it updates a scoreboard value. ( idk about this, I never made a custom entity before )
the "state", idk what this means, but I'll assume it's the current condition of this entity like: 'pregnant', 'hungry', or 'injured'
use tags or dynamicProperty to store these mob states. and Grab it later on.
And the "temperament" should be a string right? You can go with tags or dynamicProperty
I was given the following file with the following code
is that I'm new in the area of scripts I started these days and I'm still learning so some things I won't understand without an example of a written code where all the information is positioned