Movable Tile Entities - 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: Movable Tile Entities (/thread-3267.html) |
Movable Tile Entities - Krystilize - 03-27-2020 How hard would it be to be able to move tile entities (chests, hoppers) with pistons? Is the code on Tile Entities based on fixed coordinates or would it be feasible? If itĀ isĀ feasible, could it be added as an option? Thanks RE: Movable Tile Entities - tigerw - 03-28-2020 I do believe we could move enderchests at one point, even with a sly comment in the code about it, but it was brought into line with vanilla. However enderchests are stateless. Moving normal chests which do have an associated tile entity would involve enumerating entities at the block's position and adjusting their coordinates. I suspect it's feasible. RE: Movable Tile Entities - xoft - 03-28-2020 I suppose it's doable. The only problem (but that's with pushing regular blocks as well) is on chunk boundaries, when pushing something through to a chunk that's not loaded. |