Cuberite Forum
Enable Command Blocks - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Enable Command Blocks (/thread-1570.html)

Pages: 1 2


Enable Command Blocks - beecoopcool - 09-08-2014

How can I enable command blocks?


RE: Enable Command Blocks - tigerw - 09-08-2014

Change the CommandBlocksEnabled setting under the Mechanics group of your world folder's world.ini configuration file.


RE: Enable Command Blocks - bearbin - 09-08-2014

Do command blocks work, like in vanilla, or can they just run commands with no special options?


RE: Enable Command Blocks - tigerw - 09-08-2014

Only console commands. No /testfor.


RE: Enable Command Blocks - xoft - 09-08-2014

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.


RE: Enable Command Blocks - sphinxc0re - 09-08-2014

And for the /testfor command they have to work with comperators .. which don't work either


RE: Enable Command Blocks - mschools1711 - 01-08-2015

(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


RE: Enable Command Blocks - sphinxc0re - 01-08-2015

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.


RE: Enable Command Blocks - worktycho - 01-09-2015

Is there a grammar to command blocks? It felt more like batch files to me.


RE: Enable Command Blocks - sphinxc0re - 01-09-2015

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.