[SPIGOT-6667] /schedule function not working correctly in other dimensions Created: 22/Jul/21  Updated: 23/Jul/21  Resolved: 23/Jul/21

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Konrad Kleineidam Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.17.1, DataPacks, Dimensions, functions, schedule
Environment:

Linux, Ubuntu 18.04


Attachments: Zip Archive replicate.zip    
Version: This server is running CraftBukkit version 3198-Spigot-18c71bf-0abf420 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

Using /schedule function namespace:path <time> to schedule a datapack function for later execution executes the function immediately, if executed in a dimension other than overworld (tested for nether and a custom generated dimension)

This bug apparently already existed in 1.16.1 (see https://bugs.mojang.com/browse/MC-196949)

 

To replicate, add the attached datapack to your server, reload and go in the overworld dimension.

Then execute the command "/function bug:test".
After 3 seconds, the text "test" will be printed in the chat.
Now go in the nether and run the command again.
The text will be printed immediately.



 Comments   
Comment by Marvin Rieple [ 22/Jul/21 ]

Made a PR for this: craftbukkit#898

Comment by Konrad Kleineidam [ 22/Jul/21 ]

I added a test datapack and instructions to replicate the issue.

Comment by Marvin Rieple [ 22/Jul/21 ]

Do you have a test datapack as well as specific steps to reproduce? 

Generated at Fri Mar 14 17:31:33 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.