Cuberite Forum

Full Version: Command block 1.9-1.12 and daylight sensor don't work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I would like to move my server to cuberite, but I have 2 problems.

Its possible to use commandblocks from new version of minecraft? 

What limitations have command block?

Why daylight sensor not work, its posible to fix it?

thank you for all information
Hello, welcome to the forum.

There is some initial support for commandblocks, but basically they don't work as you'd expect from Vanilla. For this reason, they need to be explicitly allowed in the configuration, they are disabled by default.

Daylight sensors haven't been implemented yet.
its bad information for me Sad

so i must rewrite all my command block to plugins. Its posible to detect the word time in plugins?
The normal command block (id 137) works, but the GUI for editing its command doesn't work in 1.9-1.12 right now due to changes in Minecraft. It's quite useless though, since it can only run console commands at the moment.

Besides switching to 1.8, you can edit it by using plugins. I've attached an example plugin.
(06-16-2017, 11:46 PM)IronWolf Wrote: [ -> ]Its posible to detect the word time in plugins?

You can use GetTimeOfDay. For example


Code:
Player:GetWorld():GetTimeOfDay()


will give the world time in ticks for the world a player is in.

Code:
cRoot:Get():GetWorld("worldname"):GetTimeOfDay()
will give the time of the specified world.

https://api.cuberite.org/cWorld.html