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