maruohon / tellme

Small informational mod for Minecraft
22 stars 10 forks source link

Syncing log dump data between server and client on servers #17

Open TheDeviantCrafter opened 5 years ago

TheDeviantCrafter commented 5 years ago

While on servers, using commands which dump information to the log sends the information to the log. This can't be accessed by clients unless they have console or FTP access.

I suggest two changes to make this easier to use on servers:

  1. Commands which dump to console also dump the information to the client's console

  2. Shift right + clicking on a tile entity with a gold nugget also creates a block_and_tile_entity_data.txt file in the client's config folder.

maruohon commented 5 years ago

This is trickier than what it sounds like. If the client doesn't have the mod, then the only way to dump stuff to the client's console is via normal chat messages, which is kind of what the console output is trying to avoid - spamming the chat with unreadable (too long lines) stuff.

And getting the full NBT dump of TEs or entities on the client also doesn't work properly, as the client doesn't have all the NBT data of TileEntities or entities, and some mod blocks/tiles even crash when you try to write them to NBT on the client side.

But I guess I could add custom packets to send the data, which means that if the client has the mod installed, then it could receive and output or dump the sent data.