Started by
leveljaap
on
Topic category: Help with Minecraft modding (Java Edition)
Hello,
I appreciate the removal of the "Answer field" for commands and the procedure function that replaced it, but now I have no idea how to make a command have output. I tried to let it send a message to provided entity but then it says that the world dependancy is somehow not provided. Even if it would work, I am not trying to send a message, I just want an output that I can do something with. So when the command is executed in a command block and commandblockoutput is on false, the output must be visible inside the command block but not in chat. That kind of output. Can anyone tell me how to do this?
Thanks in advance.
You can use the send chat to player procedure block in the command procedure to send any data back to the player.
That works when a player is executing the command but I am working with ComputerCraft's command computers, which can't get the output this way. This way the output becomes a simple chat message and is not seen as output. A command computer is not an entity and can therefore not receive a chat message so it can't read the output. This means I can't do anything with it.
I would suggest that commands actually have an output instead of sending chat messages.