#Command that runs a command in a specified dimension using one arguement

5 messages · Page 1 of 1 (latest)

hearty phoenix
#

Hi, stupid new to Kubejs, made this command:

    const { commands: Commands, arguments: Arguments} = event

    event.register(
        Commands.literal("floenia")
        .then(Commands.literal('scarletmusic')
                    .executes(ctx => {
                                         
                    server.runCommandSilent(`execute in floenia:floenia run setblock -889 75 -360 minecraft:redstone_block`)
                    
                    return 1
                })
            )
        )
})```

Which reloads without errors, but when I try to run the command in game, I get "An unexpected server error occured when attempting to execute the command", with no errors in logs.
Did I miss something?
pastel fiberBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

hearty phoenix
#

Got an error out of it and added it to this post

#

oh wait, think i've got it...

#

Yup. Forgot to define server