02-13-2014, 10:46 PM
Thanks!
Actually the method you described is quite exactly what the script is doing - looping through an array and checking each block/input and setting each output/block in the array in every OnWorldTick(). Actually the user can even specify blocks (with a golden shovel) and assign them to the array, but so far only a few are implemented to actually do something (although that can easily be changed in the script).
The powered state of block is a good idea - so far I have been substituting this with using a redstone torch on the block (makes nice blinking LEDs with a simple circuit ).
As to the require path - it would certainly make it easier than specifying the full path (as different Raspberries can run different OSes).
And is there any way of creating a plugin in C++? Or would I have to recompile the whole server to add some code? Also some OnBlockChange hook would help maybe.
----------------------------------------------------------------------------------------------------------------------------------------------------
Jejda, já tam nechal nějaký český komentáře? Jsem to chtěl udělat čitelný i pro ostatní (ne-čechy), ale zvyk je zvyk Jinak jo, jsem z ČR, konkrétně okolí Prahy.
Actually the method you described is quite exactly what the script is doing - looping through an array and checking each block/input and setting each output/block in the array in every OnWorldTick(). Actually the user can even specify blocks (with a golden shovel) and assign them to the array, but so far only a few are implemented to actually do something (although that can easily be changed in the script).
The powered state of block is a good idea - so far I have been substituting this with using a redstone torch on the block (makes nice blinking LEDs with a simple circuit ).
As to the require path - it would certainly make it easier than specifying the full path (as different Raspberries can run different OSes).
And is there any way of creating a plugin in C++? Or would I have to recompile the whole server to add some code? Also some OnBlockChange hook would help maybe.
----------------------------------------------------------------------------------------------------------------------------------------------------
Jejda, já tam nechal nějaký český komentáře? Jsem to chtěl udělat čitelný i pro ostatní (ne-čechy), ale zvyk je zvyk Jinak jo, jsem z ČR, konkrétně okolí Prahy.