Topic category: Help with Minecraft modding (Java Edition)
I'm recreating the Stone Talus from Breath of the wild.
Ideally i need to figure out how this mob can work in game.
It needs to have multiple different states
State 1 : Dormant
The mob will be using a dormant animation to blend into the environment. These guys are massive stone like creatures and will just have themselves laying ontop of the ground. Whilst they are dormant with a ore piece to lure unexpecting players in.
State 2: Wake up.
When a player is in close proximity of the mob these guys should go into their wake up animation. Getting up from the ground and preparing its self to fight.
State 3: Boss fight
These guys will turn into a overworld mini boss and will try to kill the players at cost.
You'd need to implement a state machine in procedures https://refactoring.guru/design-patterns/state
And geckolib https://mcreator.net/plugin/91484/nerdys-geckolib-plugin-forge-1182-1192
For the 2nd state you should use the entity ticking trigger.