Skript error

Created on 19 Jun 2020  路  5Comments  路  Source: SkriptLang/Skript

Description

I have no idea what this is but I was told to report it

Steps to Reproduce

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)

Expected Behavior

The iron ingot was going to drop in a certain location on the world

Errors / Screenshots


https://gist.githubusercontent.com/pythermal/8557f70a546547128574e27ffa1ebc2f/raw/442cf9e9232a929b399b46d4e7d9bcff9d158df1/error.txt

Server Information

  • Server version/platform: Minecraft 1.15.2, Spigot
  • Skript version: 2.4.1

Additional Context


Sorry if this is a well-known bug or I'm bad at skript, I really have no idea what I'm doing

bug duplicate

All 5 comments

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

Closing this as LimeGlass pointed out, its a duplicate of #1465

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Misio12320 picture Misio12320  路  3Comments

TrademarkTM picture TrademarkTM  路  4Comments

Anoniempje1234 picture Anoniempje1234  路  3Comments

Coolfire02 picture Coolfire02  路  3Comments

Romitou picture Romitou  路  3Comments