#Possible to access player stage in EntityEvents?

5 messages · Page 1 of 1 (latest)

quiet ibex
#

I'm working on an idea, I have this so far:

EntityEvents.spawned(event => {
    let { entity, player, level, server } = event
    if (!entity.type == 'minecraft:zombie') return
    if (player.stages.has('no_zombie')){
        event.cancel()
    }
})```
But it says "cannot read property stages from null," so I'm wondering if there's any way to grab info about the player in this event at all? Or do I need to buckle down and try GameStages mod?
brazen ivyBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

cobalt meteor
#

thats not possible cuz theres more than 1 player in a game

#

you have to check a specific player

quiet ibex
#

Ah gotcha, I was thinking something like that. Okay, I'll try a different idea then. Thank you!