Cuberite Forum
Lever - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Lever (/thread-649.html)

Pages: 1 2


RE: Lever - xoft - 12-16-2012

And does the repeater turn off after you turn off the lever?


RE: Lever - NiLSPACE - 12-16-2012

yes it does


RE: Lever - keyboard - 12-17-2012

(12-16-2012, 03:54 PM)xoft Wrote: I finally had a look at the patch, nice work. I just reformatted some of the lengthy conditions, otherwise it's good. Committed as rev 1075.

Thanks Smile

I see what you mean that the lever could power the repeater even when it is off. What I found from testing is that what is determining if power gets propagated to the neighboring blocks is the RemoveCurrent Function by finding which device is a power source (only a lever that is on is being detected as a power source).

What I have so far that is not working is what Luksor found: the lever doesn't power the block it is attached to when it is on the side of the block. I think this has to do with the way the powering of blocks are handled. That's why I thought of building some sort of event based simulator.


RE: Lever - NiLSPACE - 12-22-2012

maybe you can also add buttons and pressure plates Smile


RE: Lever - keyboard - 12-22-2012

YeahBig Grin i want to add those too.