Cuberite Forum

Full Version: Slimeblock interaction
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
tigerw has quite allot of knowledge about the redstone and pistons, so he might be able to help you with it.
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.
I PMed you about this already, could you take a look at the prototype?