Posts: 22
Threads: 7
Joined: Jan 2020
Thanks: 2
Given 4 thank(s) in 3 post(s)
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
Posts: 953
Threads: 16
Joined: May 2013
Thanks: 67
Given 106 thank(s) in 90 post(s)
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.
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
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.