No world in periodic event error.

  • 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 community!

    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!

Status
Not open for further replies.

MykGyvr

Member
Oct 22, 2020
3
0
1
I'm attempting to make items spawn on blocks if a player is within a specific bound. Everything checks out except for this one pesky error:

There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (generator.sk, line 166: if player's world is "Islands":')

Here's my skript, someone please help me understand. Thanks!

Code:
every 5 seconds:
    if player's world is "Islands":
        if {island::%uuid of player%} is set:
            set {_myIsland} to {island::%uuid of player%}
            set {_bound} to bound from id "%{_myIsland}%"
            loop all players:
                if loop-player's location is within bound {_bound}:
                    if {Generators::list::%loop-player's uuid%::*} is set:
                        drop 1 of bricks 0.5 meters above {Generators::location::%loop-player's uuid%::1::*} without velocity
                        drop 1 of nether brick item 0.5 meters above {Generators::location::%loop-player's uuid%::2::*} without velocity
                        drop 1 of wheat 0.5 meters above {Generators::location::%loop-player's uuid%::3::*} without velocity
                        drop 1 of melon slice 0.5 meters above {Generators::location::%loop-player's uuid%::4::*} without velocity
                        drop 1 of stick 0.5 meters above {Generators::location::%loop-player's uuid%::5::*} without velocity
                        drop 1 of coal 0.5 meters above {Generators::location::%loop-player's uuid%::6::*} without velocity
                        drop 1 of lapis lazuli 0.5 meters above {Generators::location::%loop-player's uuid%::7::*} without velocity
                        drop 1 of iron nugget 0.5 meters above {Generators::location::%loop-player's uuid%::8::*} without velocity
                        drop 1 of iron ingot 0.5 meters above {Generators::location::%loop-player's uuid%::9::*} without velocity
                        drop 1 of gold nugget 0.5 meters above {Generators::location::%loop-player's uuid%::10::*} without velocity
                        drop 1 of gold ingot 0.5 meters above {Generators::location::%loop-player's uuid%::11::*} without velocity
                        drop 1 of diamond 0.5 meters above {Generators::location::%loop-player's uuid%::12::*} without velocity
                        drop 1 of emerald 0.5 meters above {Generators::location::%loop-player's uuid%::13::*} without velocity
                        drop 1 of warped fungus 0.5 meters above {Generators::location::%loop-player's uuid%::14::*} without velocity
                        drop 1 of nether quartz 0.5 meters above {Generators::location::%loop-player's uuid%::15::*} without velocity
                        drop 1 of book 0.5 meters above {Generators::location::%loop-player's uuid%::16::*} without velocity
                        drop 1 of glowstone dust 0.5 meters above {Generators::location::%loop-player's uuid%::17::*} without velocity
                        drop 1 of netherite scrap 0.5 meters above {Generators::location::%loop-player's uuid%::18::*} without velocity
                        drop 1 of prismarine shard 0.5 meters above {Generators::location::%loop-player's uuid%::19::*} without velocity
                        drop 1 of rotten flesh 0.5 meters above {Generators::location::%loop-player's uuid%::20::*} without velocity
                        drop 1 of magma cream 0.5 meters above {Generators::location::%loop-player's uuid%::21::*} without velocity
                        drop 1 of blaze powder 0.5 meters above {Generators::location::%loop-player's uuid%::22::*} without velocity
                        drop 1 of end crystal 0.5 meters above {Generators::location::%loop-player's uuid%::24::*} without velocity
                        drop 1 of fire charge 0.5 meters above {Generators::location::%loop-player's uuid%::25::*} without velocity
                        drop 1 of slime ball 0.5 meters above {Generators::location::%loop-player's uuid%::26::*} without velocity
                        drop 1 of honeycomb 0.5 meters above {Generators::location::%loop-player's uuid%::27::*} without velocity
                        drop 1 of nautilus shell 0.5 meters above {Generators::location::%loop-player's uuid%::28::*} without velocity
                        drop 1 of flint 0.5 meters above {Generators::location::%loop-player's uuid%::29::*} without velocity
                        drop 1 of dried kelp 0.5 meters above {Generators::location::%loop-player's uuid%::30::*} without velocity
                if loop-player's location is not within bound {_bound}:
                    cancel event
 
Status
Not open for further replies.