Delay Effect - ShaneBeee/SkriptFolia GitHub Wiki

Delay Effect:

Since Folia operates in regions on many threads, you will need a little more attention with the delay effect.

New Syntax:

(wait|halt) [for] %timespan% [for %entity/location/block%)]

  • When no entity/location/block is provided, this will use the global scheduler. This is meant for tasks done to the world/server, and are not specific to an entity/block.
  • for %entity% will be used when the delayed code involves an entity/player.
    NOTE: Entity schedulers will follow the entity. If interacting with blocks this may cause issue if the entity/player moves too far away before the code is executed.
  • for %location/block% will be used when the delayed code involves a block/location in a region.

If the incorrect scheduler is used, you are most likely going to get errors in your console.