Cuberite Forum

Full Version: Enable Command Blocks
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How can I enable command blocks?
Change the CommandBlocksEnabled setting under the Mechanics group of your world folder's world.ini configuration file.
Do command blocks work, like in vanilla, or can they just run commands with no special options?
Only console commands. No /testfor.
The command blocks currently execute only console commands, and there's a blacklist of those that cannot be executed (such as "stop", "restart", etc.). We will need to rework them from the ground up, they need a completely new infrastructure, so you can consider them currently broken.
And for the /testfor command they have to work with comperators .. which don't work either
(09-08-2014, 12:10 AM)tigerw Wrote: [ -> ]Change the CommandBlocksEnabled setting under the Mechanics group of your world folder's world.ini configuration file.

this did not work for me.... YES i DID restart the server... Huh
I have a suggesttion for the CommandBlocks. What if we write a recursive parser for them with grammar and semantic? Because that would be an awesome thing to do and would speed up the further development process of the CommandBlocks, too.
Is there a grammar to command blocks? It felt more like batch files to me.
No, command blocks contain a single command line. But there are special commands such as /summon which require a special parser to work properly. The scanner has to look for the ~ (Tilda) symbols and other things like the .riding suffix of the command and convert all these into tokens. After that the parser has to interpret all the tokens.
Pages: 1 2