#Execute as the server

1 messages · Page 1 of 1 (latest)

vapid oak
#

Hey, I need to execute a simple command as the server in a function executed by an item display entity...
I can use a schedule command but I would know if it's possible to do without any delay. 🤔

halcyon basin
#

why does it need to be by the server? there may be a simpler answer

#

if it actually needs to be sync and by the server and the condition checks are in the item display, then you would need to cut up the item display function im pretty sure

execute as @e[type=item_display,tag=this] run function pack:item_display_1
execute if score #do_global_thing pack matches 1 run say I AM THE SERVER
execute as @e[type=item_display,tag=this] run function pack:item_display_2
dusk plover
vapid oak
#

Ok thank you very much !
(That was easy...)