Cuberite Forum
Slimeblock interaction - 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: Slimeblock interaction (/thread-1849.html)



Slimeblock interaction - sphinxc0re - 03-28-2015

I created a prototype for the slimeblock interaction with pistons using a pseudo+lua mix. I think is is a pretty good one but I don't know how to implement it into the main code. Can someone with more repo-knowledge help me?
Here is the prototype (all well documented): https://github.com/SphinxC0re/SlimeBlockInteraction

Thanks in advance


RE: Slimeblock interaction - NiLSPACE - 03-28-2015

tigerw has quite allot of knowledge about the redstone and pistons, so he might be able to help you with it.


RE: Slimeblock interaction - tigerw - 04-04-2015

Probably the implementation would look similar to how Redstone wire should be done; starting from a source slime block, go through all that it borders whilst checking the max push limit isn't exceeded and no obsidian is in the way, adding all blocks to be moved to a list. If all checks passed, move the blocks in that list in the required direction.


RE: Slimeblock interaction - sphinxc0re - 04-04-2015

@tigerw I PMed you about this already, could you take a look at the prototype?