#How to open the interface after an interaction with an entity and show its information "life, stage,

1 messages ยท Page 1 of 1 (latest)

broken pine
weary remnantBOT
#
Debug Result

There are 13 errors in this [code](#1136282322094796830 message).
Please read the attached file for the result.

jovial marsh
#

@broken pine i think i can do this but not only with script bao_comm_hatchi_what

broken pine
lapis cedar
#

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

broken pine
broken pine