I have no idea what this is but I was told to report it
Skript code that caused the error:
on load:
set {game} to false
command /startgame:
trigger:
command "/tp @a 3.5 70 -6.5 facing ~ ~ 90"
set {game} to true
every 20 ticks in "world":
if {game} is true:
message "Hello" to server
drop 1 of iron ingot at location(3, 69, -10)
The iron ingot was going to drop in a certain location on the world
Sorry if this is a well-known bug or I'm bad at skript, I really have no idea what I'm doing
Update: The code works fine when i added a fourth "world" argument to the location function
on load:
set {game} to false
command /startgame:
trigger:
command "/tp @a 3.5 70 -6.5 facing ~ ~ 90"
set {game} to true
every 20 ticks in "world":
if {game} is true:
message "Hello" to server
drop 1 of iron ingot at location(3, 69, -10, world "world")
this is not a bug, just the way how functions work (if you want syntax that defaults to something, such as current world, you can do it with skript-mirror custom syntax)
and a little tip since you're new to Skript, it's better to delete variables than set them to false to save memory
the original code is actually meant to work so this is a bug, see the following snippets:
https://github.com/SkriptLang/Skript/blob/45eaaae5c7049575cef72069b6cbf5d0d210f126/src/main/java/ch/njol/skript/lang/function/Parameter.java#L50-L55
https://github.com/SkriptLang/Skript/blob/45eaaae5c7049575cef72069b6cbf5d0d210f126/src/main/java/ch/njol/skript/classes/data/DefaultFunctions.java#L312
https://github.com/SkriptLang/Skript/blob/f361d3ac9bfeb3368988343802e89518d42afd43/src/main/java/ch/njol/skript/events/EvtPeriodical.java#L50
https://github.com/SkriptLang/Skript/blob/6524d69f1e8583f917ea18c9fe526ec6df66dbfc/src/main/java/ch/njol/skript/events/bukkit/ScheduledEvent.java#L36-L43
Closing this as LimeGlass pointed out, its a duplicate of #1465