SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.07k stars 369 forks source link

Can't cancel endermite spawning? #6961

Closed juzijun233 closed 2 months ago

juzijun233 commented 3 months ago

Skript/Server Version

[16:45:00 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[16:45:00 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[16:45:00 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[16:45:00 INFO]: [Skript] Server Version: 1.21-2276-72ccfbd (MC: 1.21)
[16:45:00 INFO]: [Skript] Skript Version: 2.9.0 (skriptlang-github)
[16:45:00 INFO]: [Skript] Installed Skript Addons:
[16:45:00 INFO]: [Skript]  - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[16:45:00 INFO]: [Skript]  - skript-gui v1.3 (https://github.com/APickledWalrus/skript-gui)
[16:45:00 INFO]: [Skript]  - skript-yaml v1.5
[16:45:00 INFO]: [Skript]  - MongoSK v2.3.2 (https://github.com/Romitou/MongoSK)
[16:45:00 INFO]: [Skript]  - skript-reflect v2.5.1 (https://github.com/SkriptLang/skript-reflect)
[16:45:00 INFO]: [Skript]  - skript-db v1.3.9
[16:45:00 INFO]: [Skript]  - SkJson v4.0.1
[16:45:00 INFO]: [Skript]  - SkBee v3.5.8 (https://github.com/ShaneBeee/SkBee)
[16:45:00 INFO]: [Skript]  - PoaSkRewritev2 v4.7.3 (https://github.com/Ekpoa/PoaSkRewritev2)
[16:45:00 INFO]: [Skript]  - ItemsAdder v4.0.2-alpha-test-3 (devs.beer)
[16:45:00 INFO]: [Skript] Installed dependencies:
[16:45:00 INFO]: [Skript]  - Vault v1.7.3-b131
[16:45:00 INFO]: [Skript]  - WorldGuard v7.0.11-beta1+a801a9d

Bug Description

You can't cancel the spawning of ender mites, but you can cancel the spawning of mobs due to natural causes (I know that the spawning of ender mites is not due to natural causes)

Expected Behavior

As well as canceling natural spawning, using an ender pearl will prevent endermites from spawning.

Steps to Reproduce

on spawn:
    log "%event-spawnreason% | %event-entity%"
    if event-entity is endermite:
        log "spawn endermite"#no effect in log
        cancel event

image

Errors or Screenshots

No response

Other

No response

Agreement

erenkarakal commented 3 months ago

event-entity is an endermite or type of event-entity is endermite

sovdeeth commented 3 months ago

yes an endermite should fix it

Moderocky commented 2 months ago

Closing due to no response.