KubeJS

KubeJS

61M Downloads

Spawner argument in EntityEvents.CHECK_SPAWN

bloodsbro opened this issue ยท 9 comments

commented

Describe the feature

For the system I want to implement, I need to know from which spawner the mob wants to appear in the CheckLivingEntitySpawnEventJS event

Additional info

https://github.com/KubeJS-Mods/KubeJS/blob/2004/src/main/java/dev/latvian/mods/kubejs/entity/KubeJSEntityEventHandler.java#L23

commented

image

commented

image

commented

this is from probejs addon mod, highly recommended

commented

I know this addon, and I even have it installed, maybe you misunderstood me, I need to find out in the event EntityEvents.checkSpawn from which spawner (minecraft:spawner) is trying to spawn mob

commented

did you check the first picture i sent you where it shows exactly what the "checkspawn" does?

commented

honestly this would be a lot easier to troubleshoot if you just joined the discord and opened up an actual support ticket

commented

lio, the spawner argument isn't passed to the KubeJS-facing event, that's what they're asking for...

commented

oh i see, seems i misunderstood the question then

commented

Added \o/