Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"if loop-entity is a slime:" not working #5736

Closed
1 task done
Izanaagii opened this issue Jun 7, 2023 · 3 comments
Closed
1 task done

"if loop-entity is a slime:" not working #5736

Izanaagii opened this issue Jun 7, 2023 · 3 comments
Labels
waiting for reply The report needs a response from the reporter to determine course of action.

Comments

@Izanaagii
Copy link

Izanaagii commented Jun 7, 2023

Skript/Server Version

Server Version: git-Purpur-1972 (MC: 1.19.4)
Skript Version: 2.7.0-beta2 (skriptlang-github)
Installed Skript Addons:
skript-placeholders v1.5.2 (https://github.com/APickledWalrus/skript-placeholders)
SkQuery v4.1.9
Installed dependencies:
Vault v1.7.3-b131
WorldGuard v7.0.7+216b061
GriefPrevention v16.18.1

Bug Description

Explained in the title, nothing to add, there my script :

#Skript ClearLag by Izanagii_

every 15 minutes:
    make console execute "clearlag-start"

command /clearlag-start:
    permission: *
    permission message: &cVous n'avez pas la permission !
    trigger:
        wait 13 minutes
        send "&cSuppression des entités dans 2 minutes !" to all players
        wait 1 minutes
        send "&cSuppression des entités dans 60 secondes !" to all players
        wait 30 seconds
        send "&cSuppression des entités dans 30 secondes !" to all players
        wait 20 seconds 
        send "&cSuppression des entités dans 10 secondes !" to all players
        wait 10 seconds
        make console execute "clearlag"

command /clearlag [<text>]:
    permission: *
    permission message: &cVous n'avez pas la permission !
    trigger:
        if arg-1 is "force":
            set {_count} to 0
            loop all entities:
                if loop-entity is an dropped item:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an blaze:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an cave spider:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an creeper:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an drowned:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an enderman:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an endermite:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an evoker:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an stray:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an vindicator:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an witch:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an wither skeleton:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an skeleton:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an cow:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an zombie:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an zombified piglin:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an pig:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an guardian:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an silverfish:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an chicken:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an sheep:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an magma cube:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an vex:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an iron golem:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an pillager:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an ravager:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an salmon:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an cod:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an rabbit:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an squid:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an glow squid:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an elder guardian:
                    delete loop-entity
                    add 1 to {_count}
            broadcast "&7%{_count}% entités ont été supprimées !"
            stop
        if {voteparty} is true:
            message "&cLe ClearLag ne fonctionne pas durant le Vote Party !"
            stop
        else:
            set {_count} to 0
            loop all entities:
                if loop-entity is an pillager:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an ravager:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an salmon:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an cod:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an dropped item:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an blaze:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an cave spider:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an creeper:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an drowned:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an enderman:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an endermite:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an evoker:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an stray:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an vindicator:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an witch:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an chicken:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an wither skeleton:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an zombie:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an pig:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an zombified piglin:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an guardian:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an silverfish:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an cow:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an magma cube:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an vex:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an iron golem:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an skeleton:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an sheep:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an rabbit:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an squid:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an glow squid:
                    delete loop-entity
                    add 1 to {_count}
                if loop-entity is an elder guardian:
                    delete loop-entity
                    add 1 to {_count}
            broadcast "&7%{_count}% entités ont été supprimées !"

command /test-voteparty:
    trigger:
        message "%{voteparty}%"


command /test-clearlag [<text>]:
    permission: *
    permission message: &cVous n'avez pas la permission !
    trigger:
        set {_count} to 0
        loop all entities with name:
            if loop-entity name tag is not set:
                if loop-entity is an blaze:
                    delete loop-entity
                    add 1 to {_count}
        send "%{_count}%" to player

Expected Behavior

Check slime also, but not checking....

Steps to Reproduce

Copy paste my script and try with slime into the clearlag

Errors or Screenshots

Once you remove slime section this become good
image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
@AyhamAl-Ali
Copy link
Member

Hmm, I don't see if loop-entity is a slime: in your code?!

@AyhamAl-Ali AyhamAl-Ali added the waiting for reply The report needs a response from the reporter to determine course of action. label Jun 8, 2023
@TheLimeGlass
Copy link
Collaborator

Try updating to 2.7.0-beta3, this was most likely fixed in #5503

@AyhamAl-Ali
Copy link
Member

Will be closing the issue within a couple days due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for reply The report needs a response from the reporter to determine course of action.
Projects
None yet
Development

No branches or pull requests

3 participants