spawner type list

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Enablement

Member
May 23, 2024
4
0
1
24
Hello,

Just wondering if anyone knows why this wouldn't be working it only sends me the test message if its a chicken spawner so very confused?

code_language.skript:
on script load:
    add zombie to {spawnertypelist::*}
    add cow to {spawnertypelist::*}
    add chicken to {spawnertypelist::*}

on right click:
    if player is sneaking:
        if event-block's spawner type is {spawnertypelist::*}:
            send "test"
 
Hello,

Just wondering if anyone knows why this wouldn't be working it only sends me the test message if its a chicken spawner so very confused?

code_language.skript:
on script load:
    add zombie to {spawnertypelist::*}
    add cow to {spawnertypelist::*}
    add chicken to {spawnertypelist::*}

on right click:
    if player is sneaking:
        if event-block's spawner type is {spawnertypelist::*}:
            send "test"
Code:
on script load:
    delete {spawnertypelist::*}

    if {spawnertypelist::*} isn't set:
        add "zombie" to {spawnertypelist::*}
        add "cow" to {spawnertypelist::*}
        add "chicken" to {spawnertypelist::*}

on right click:
    if player is sneaking:
        loop {spawnertypelist::*}:
            if event-block's spawner type is loop-value parsed as entity type:
                send "&7Spawner's type is &c%event-block's entity type%" to player

I added some lines of code