i'm trying to make a function schedule another function in 1 tick, but it's not working
schedule function magic_items:endless_stew_2 1t replace
the advancement i'm using to activate a function works, and the function it's referencing works, but neither the function this one is in nor does manually using the schedule command works
is there something wrong with how i'm using the schedule command?
#schedule command isn't working or i'm misunderstanding something
1 messages · Page 1 of 1 (latest)
i've also tried schedule function magic_items:endless_stew_2 1t and schedule function magic_items:endless_stew_2 1 but neither work either
the schedule commands you're providing are correct. what does the function look like?
i copied it from the function
let me rephrase: send the contents of the function magic_items:endless_stew_2
oh
that function works fine
i've tested it both by itself and as a reward for the advancement, i just need it to run 1 tick after, so it properly removes the bowl
clear @s bowl 1 give @s minecraft:rabbit_stew[rarity=epic, enchantment_glint_override=true, item_name="Bowl of Endless Stew"] advancement revoke @s only magic_items:endless_stew
yeah, so the problem is that schedule doesnt retain any execution context. your function as run by the schedule commands is executed as the server at the world origin, not by the player who executed the original function
you'll generally work around this by giving the player some tag that you can refer to in the original function and then targeting players with that tag instead of @s in the scheduled function