MineOS icon indicating copy to clipboard operation
MineOS copied to clipboard

running minecraft commands in minecode IDE

Open polrbare opened this issue 3 years ago • 4 comments

i was attempting to create a program that would take user inputs from text boxes in a gui and build a command with it and run it, while i am fairly confident with getting the gui together, im not sure how to execute commands in the IDE, i was thinking like how a command block would run the commands at the location of the block, however i cant seem to find any information about this, im hoping its possible to run commands from minecode. if anyone knows, that would be awsome

polrbare avatar Feb 08 '22 05:02 polrbare

how to execute commands in the IDE

What do you mean by IDE commands & running them from minecode?

IgorTimofeev avatar Feb 08 '22 12:02 IgorTimofeev

like, on the default mineOS program "minecode" i dont know if its possible to run normal minecraft commands from the computer through code like "/gamemode creative" i have a debug card in, i just dont know how to actually tell it to execute commands.

polrbare avatar Feb 09 '22 04:02 polrbare

try to create an input and send everything you get at the input to the debug card with the command debug.runCommand([string from input]) P.S. debug = require("Component").debug

MrFredber avatar Feb 09 '22 04:02 MrFredber

This is from official documentation: https://ocdoc.cil.li/component:debug?s[]=debug&s[]=card

MrFredber avatar Feb 09 '22 04:02 MrFredber

это нужно закрывать

Bumer-32 avatar Oct 24 '22 05:10 Bumer-32

image

IgorTimofeev avatar Oct 24 '22 10:10 IgorTimofeev