Ajneb97 / ConditionalEvents

MIT License
22 stars 13 forks source link

ConditionalEvent's cancel_event feature does not work on MythicMobs #46

Open hero23550 opened 9 months ago

hero23550 commented 9 months ago

1.19.4 PaperMC server ConditonalEvents 4.45.4 MythicMobs v5.5.1

_PS: i am reporting this since i am trying to make a boss spawn limiter using boss eggs (like if players already summoned one boss with the egg they cant summon another until the alive one dies or despawns. [i have almost achieved this but cancelevent doesnt seem to work on mythicmobs] )

Ajneb97 commented 9 months ago

Did you used /ce debug ?

And what it's supposed to happen with no cancel event?

hero23550 commented 9 months ago

1] Yes i used /ce debug, it shows that cancel_event is being applied. but it doesn't stop the spawning of the mob 2] Without cancel event the spawn egg would spawn the mob

Ajneb97 commented 9 months ago

I don't understand. You are using a block_interact event, when the player rights clicks on a certain block, and you are not even specifying the block, only the item in hand. If this doesn't work then you should try to block the spawn event instead (entity_spawn)

hero23550 commented 9 months ago

thanks, I'll try that

hero23550 commented 8 months ago

The cancel event does seem to work now but it doesnt return the spawn egg used by the player to summon the boss