i need push mobs from lava to air or to players, how i can do this.
I have a mechanic for catching a mob from fishing, I want to make it so that when catching a mob from lava, it does not drown but moves towards the player or something like that..
I have event for check nbt tag from mobs right now:
EntityEvents.spawned(event => {
const nbt = event.entity.getNbt()
if(nbt.Tags[0] !== "isLavaCreature") return
//code for mob walk to player
})