Moving blocks
#13
What STR says is very right.

For MCS, tile entities are basically just entries in a list that are associated with the coordinates of a block that have extra data (i.e. contents, right click handlers, etc.) I'm fairly certain you can't 'send' a cobblestone tile entity - you can either update a client side tile entity via a packet (like a mob spawner's spinning mob type / command block text), or do special things with other packets (open a window for a chest). Internally to MCS, you can absolutely assign cobblestone to be a block entity that acts like a chest or whatever, the client doesn't care.

If you want to make any type of block move, you probably need to make a FallingSand entity, and assign it's blocktype and blockmeta to be what you want. As far as I know, block entities still can't move, they just store extra data.

For the PISTON_MOVING block, it stores a blocktype and meta, position and progress that animates a moving block. However, the client doesn't animate things that can't be moved (like a chest or furnace). I believe these things can't be moved because then the entry in the block entities list would become disassociated with the actual block in the world, and thus would be leaked.

(Correct me if I am mistaken too, I am very unsure of myself :P)

PS: Thank you, Taugeshtu, for using Windows 8 :)
Reply
Thanks given by: Taugeshtu


Messages In This Thread
Moving blocks - by Taugeshtu - 09-08-2012, 11:03 PM
RE: Moving blocks - by xoft - 09-08-2012, 11:28 PM
RE: Moving blocks - by NiLSPACE - 09-08-2012, 11:34 PM
RE: Moving blocks - by Taugeshtu - 09-08-2012, 11:37 PM
RE: Moving blocks - by FakeTruth - 09-09-2012, 12:19 AM
RE: Moving blocks - by Taugeshtu - 09-09-2012, 12:30 AM
RE: Moving blocks - by xoft - 09-09-2012, 01:26 AM
RE: Moving blocks - by Taugeshtu - 09-09-2012, 02:49 AM
RE: Moving blocks - by Taugeshtu - 01-03-2014, 10:32 AM
RE: Moving blocks - by xoft - 01-03-2014, 03:46 PM
RE: Moving blocks - by Taugeshtu - 01-26-2014, 02:36 AM
RE: Moving blocks - by NiLSPACE - 01-26-2014, 03:00 AM
RE: Moving blocks - by tigerw - 01-26-2014, 03:57 AM
RE: Moving blocks - by Taugeshtu - 01-26-2014, 06:42 AM
RE: Moving blocks - by tigerw - 01-26-2014, 10:21 AM
RE: Moving blocks - by xoft - 01-26-2014, 09:02 PM
RE: Moving blocks - by tonibm19 - 01-26-2014, 09:07 PM
RE: Moving blocks - by tigerw - 01-26-2014, 10:16 PM
RE: Moving blocks - by NiLSPACE - 01-26-2014, 10:22 PM
RE: Moving blocks - by tigerw - 01-26-2014, 11:14 PM
RE: Moving blocks - by NiLSPACE - 01-26-2014, 11:39 PM



Users browsing this thread: 9 Guest(s)