Jump to content

[1.7.10] NBT Problem


Alanzote

Recommended Posts

Can someone please Explain what is happening? On my updateEntity() I put a System.out.printIn(power), it print it, but I got some strange things, by the power item I put on the custom container it added 10000 of power but take a look at the CONSOLE:

 

[20:04:11] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[20:04:11] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:11] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[20:04:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[20:04:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[20:04:12] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[20:04:12] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:04:12] [sound Library Loader/INFO]: Sound engine started

[20:04:21] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[20:04:21] [server thread/INFO]: Generating keypair

[20:04:21] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[20:04:21] [server thread/INFO] [FML]: Applying holder lookups

[20:04:21] [server thread/INFO] [FML]: Holder lookups applied

[20:04:21] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@4cd69091)

[20:04:21] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@4cd69091)

[20:04:21] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@4cd69091)

[20:04:21] [server thread/INFO]: Preparing start region for level 0

[20:04:22] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:readFromNBT:65]: READ

[20:04:22] [server thread/INFO]: Preparing spawn area: 61%

10000.0

[20:04:23] [server thread/INFO]: Changing view distance to 12, from 10

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

[20:04:23] [Netty Client IO #0/INFO] [FML]: Server protocol version 1

[20:04:23] [Netty IO #1/INFO] [FML]: Client protocol version 1

[20:04:23] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[20:04:24] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[20:04:24] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

10000.0

[20:04:24] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[20:04:24] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[20:04:24] [server thread/INFO]: Alanzote[local:E:6c5af151] logged in with entity id 387 at (-253.72057713996094, 94.0, 273.0333764823144)

[20:04:24] [server thread/INFO]: Alanzote joined the game

10000.0

[20:04:24] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:writeToNBT:86]: WROTE

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

0.0

[20:05:08] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:writeToNBT:86]: WROTE

0.0

0.0

0.0

10000.0

10000.0

10000.0

0.0

10000.0

10000.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

0.0

10000.0

10000.0

0.0

[20:05:23] [server thread/INFO]: Saving and pausing game...

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[20:05:23] [server thread/INFO] [sTDOUT]: [com.gpa.startrekmod.tileentities.TileEntityReplicatorBlock:writeToNBT:86]: WROTE

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/The End

[20:05:23] [server thread/INFO]: Stopping server

[20:05:23] [server thread/INFO]: Saving players

[20:05:23] [server thread/INFO]: Saving worlds

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Overworld

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/Nether

[20:05:23] [server thread/INFO]: Saving chunks for level 'New World'/The End

[20:05:24] [server thread/INFO] [FML]: Unloading dimension 0

[20:05:24] [server thread/INFO] [FML]: Unloading dimension -1

[20:05:24] [server thread/INFO] [FML]: Unloading dimension 1

[20:05:24] [server thread/INFO] [FML]: Applying holder lookups

[20:05:24] [server thread/INFO] [FML]: Holder lookups applied

[20:05:24] [Client thread/INFO]: Stopping!

[20:05:24] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[20:05:24] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[20:05:25] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[20:05:25] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

see? 10000.0 and then 0.0! What is happening?

Here are the Read/Write

 

@Override

public void readFromNBT(NBTTagCompound nbt){

super.readFromNBT(nbt);

 

NBTTagList list = nbt.getTagList("Slots", 10);

power = nbt.getFloat("reppower");

System.out.println("READ");

this.slots = new ItemStack[getSizeInventory()];

 

for(int i = 0; i < list.tagCount(); i++){

NBTTagCompound  item = list.getCompoundTagAt(i);

byte b = item.getByte("Item");

 

if(b >= 0 && b < this.slots.length){

this.slots = ItemStack.loadItemStackFromNBT(item);

}

}

 

if(nbt.hasKey("CustomName")){

this.setInventoryName(nbt.getString("CustomName"));

}

}

@Override

public void writeToNBT(NBTTagCompound nbt){

super.writeToNBT(nbt);

 

nbt.setFloat("reppower", power);

System.out.println("WROTE");

nbt.setInteger("facingDirection", facingDirection);

NBTTagList list = new NBTTagList();

 

for(int i = 0; i < this.slots.length; i++)

{

if(this.slots != null){

NBTTagCompound item = new NBTTagCompound();

item.setByte("item", (byte)i);

this.slots.writeToNBT(item);

list.appendTag(item);

}

}

 

Thanks!

Link to comment
Share on other sites

Client prints 0, server prints 10000.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

GUI probably. But if it is a tile entity, you need to implement the description packet functions.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

...Use the container stuff for that, no need to have the overhead of NBT and sending the stuff to everyone instead of just the player viewing the GUI.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

I need to have the same var on CLient/Server(client to draw power/maxpower and server to save it)

 

On client side, is it only something visible in the GUI? Or are you doing something like making the block look different for all players (like show it turned on using different model, texture or particles)? In the first case, as mentioned by diesieben07 you should use container and gui handler (this creates built-in sync). In the second case, you'll need to send packet to all players.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

I need to have the same var on CLient/Server(client to draw power/maxpower and server to save it)

 

On client side, is it only something visible in the GUI? Or are you doing something like making the block look different for all players (like show it turned on using different model, texture or particles)? In the first case, as mentioned by diesieben07 you should use container and gui handler (this creates built-in sync). In the second case, you'll need to send packet to all players.

There is a bar that displays the power divided by max power.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • ASIABET adalah pilihan terbaik bagi Anda yang mencari slot gacor hari ini dengan server Rusia dan jackpot menggiurkan. Berikut adalah beberapa alasan mengapa Anda harus memilih ASIABET: Slot Gacor Hari Ini Kami menyajikan koleksi slot gacor terbaik yang diperbarui setiap hari. Dengan fitur-fitur unggulan dan peluang kemenangan yang tinggi, Anda akan merasakan pengalaman bermain yang tak terlupakan setiap kali Anda memutar gulungan. Server Rusia yang Handal Kami menggunakan server Rusia yang handal dan stabil untuk memastikan kelancaran dan keadilan dalam setiap putaran permainan. Anda dapat bermain dengan nyaman tanpa khawatir tentang gangguan atau lag. Jackpot Menggiurkan Nikmati kesempatan untuk memenangkan jackpot menggiurkan yang dapat mengubah hidup Anda secara instan. Dengan hadiah-hadiah besar yang ditawarkan, setiap putaran permainan bisa menjadi peluang untuk meraih keberuntungan besar.
    • Sonic77 adalah pilihan tepat bagi Anda yang menginginkan pengalaman bermain slot yang unggul dengan akun pro Swiss terbaik. Berikut adalah beberapa alasan mengapa Anda harus memilih Sonic77: Slot Gacor Terbaik Kami menyajikan koleksi slot gacor terbaik dari provider terkemuka. Dengan fitur-fitur unggulan dan peluang kemenangan yang tinggi, Anda akan merasakan pengalaman bermain yang tak terlupakan. Akun Pro Swiss Berkualitas Kami menawarkan akun pro Swiss yang berkualitas dan terpercaya. Dengan akun ini, Anda dapat menikmati berbagai keuntungan eksklusif dan fasilitas premium yang tidak tersedia untuk akun reguler.
    • SV388 SITUS RESMI SABUNG AYAM 2024   Temukan situs resmi untuk sabung ayam terpercaya di tahun 2024 dengan SV388! Dengan layanan terbaik dan pengalaman bertaruh yang tak tertandingi, SV388 adalah tempat terbaik untuk pecinta sabung ayam. Daftar sekarang untuk mengakses arena sabung ayam yang menarik dan nikmati kesempatan besar untuk meraih kemenangan. Jelajahi sensasi taruhan yang tak terlupakan di tahun ini dengan SV388! [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]   JURAGANSLOT88 SITUS JUDI SLOT ONLINE TERPERCAYA 2024 Jelajahi pengalaman judi slot online terpercaya di tahun 2024 dengan JuraganSlot88! Sebagai salah satu situs terkemuka, JuraganSlot88 menawarkan berbagai pilihan permainan slot yang menarik dengan layanan terbaik dan keamanan yang terjamin. Daftar sekarang untuk mengakses sensasi taruhan yang tak terlupakan dan raih kesempatan besar untuk meraih kemenangan di tahun ini dengan JuraganSlot88 [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]] [[jumpuri:❱❱❱❱❱ DAFTAR DI SINI ❰❰❰❰❰ > https://w303.pink/orochimaru]]
    • Slot Bank MEGA atau Daftar slot Bank MEGA bisa anda lakukan pada situs WINNING303 kapanpun dan dimanapun, Bermodalkan Hp saja anda bisa mengakses chat ke agen kami selama 24 jam full. keuntungan bergabung bersama kami di WINNING303 adalah anda akan mendapatkan bonus 100% khusus member baru yang bergabung dan deposit. Tidak perlu banyak, 5 ribu rupiah saja anda sudah bisa bermain bersama kami di WINNING303 . Tunggu apa lagi ? Segera Klik DAFTAR dan anda akan jadi Jutawan dalam semalam.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.