mojira.dev
MC-164

Tile entities cannot be pushed by Pistons

Dispensers can't be pushed by pistons.

Linked issues

MC-7776 Tile entities like furnaces can't be moved by pistons. Resolved MC-7870 Dropper is not moved by Piston Resolved MC-9729 Unable to push daylight sensor Resolved MC-12338 Pistons can't push blocks with tile entities attached to them Resolved MC-64752 Piston does not push chests or hoppers Resolved

Comments 15

Cloudy (Aaron Mills)

This is not a bug - Dispensers are Tile Entities, and can't be pushed by pistons. That is the limitation of pistons. Will leave this open in case a Mojang employee wants to take a look at it.

The question is why can't tile entities be pushed by pistons? I've never seen an answer to that, just the repeated statement that they can't. Yes, pistons use tile entities themselves for the block being moved, but the NBT format has a compound type that should allow the piston to package up the tile entity of the block being moved, then unpack and recreate the tile entity at the destination. Or just change the X, Y, and Z values of the tile entity to match the new position.

So was it a deliberate, game-balance sort of choice that blocks with tile entities cannot be moved by pistons, or something that just seemed like too much work to implement?

It would be somewhat difficult to retain parameters of the tile entities, such as contents of the object or the specified output (in the case of the note block).

But why would it be difficult? I've only given the code a cursory look, but it seems as simple as changing the X, Y, and Z fields in the related tile entity. It's not clear if it's a mapping issue, a serialization issue, a transactional issue, etc. I'm not saying it's simple, just that it looks simple, so it would be nice to have an explanation why it's not, if that's the case.

This mod moves tile entities, vanilla and mod, so it's possible. Its source is available and its license is permissive.

http://forums.technicpack.net/threads/1-5-x-redstone-in-motion-redpower-frames-1-2-0-0-july-7.47048/

5 more comments

WaI.

Thanks for clarifying that, Grum. Any chance you could elaborate as to the reason why? Even an answer as simple as Difficulty/Performance/Game balance, or some combination of the tree (or whatever it may be) would be appreciated, and help people know whether or not to pursue this elsewhere.

Mateus Pereira Milbradt

This was implemented in bedrock edition, so it's not impossible to make pistons move tile entities

In Bbedrock Edition tile entities is writen by json file format In Java Edition tile entities is writen on ".minecraft/saves/[save name]/region/r.*.*.mca"

@unknown. Mojang on feedback site says: "Java and Bedrock will not have the exact same the same redstone systems", so we may never get movable tile entities in Java Edition.

Ron Melkhior

(Unassigned)

Unconfirmed

Minecraft 1.4.2

Retrieved