that was what I was thinking. but it still doesn't work. same problem (just in case I moved the updateEntity method to another which is called when the player hit the block, it's just for testing and to prevent passing lots of info every tick)
The tileEntity is here, in the block(because I have no error so the command can reached the tileEntity) but the fields are still empty... It's really annoying because all of the mod work fine except this .
_______
also I think this :
int blockHitX = 0;
int blockHitY = 0;
int blockHitZ = 0;
int blockHitSide = 0;
if((Minecraft.getMinecraft().renderViewEntity.rayTrace(200, 1.0F) != null)){
blockHitX = Minecraft.getMinecraft().renderViewEntity.rayTrace(200, 1.0F).blockX;
blockHitY = Minecraft.getMinecraft().renderViewEntity.rayTrace(200, 1.0F).blockY;
blockHitZ = Minecraft.getMinecraft().renderViewEntity.rayTrace(200, 1.0F).blockZ;
blockHitSide = Minecraft.getMinecraft().renderViewEntity.rayTrace(200, 1.0F).sideHit;
}
work for the moment because I test in singleplayer, but when I will put the mod on the server, it will not work ?
_______
If there is an easier way to do what my mod should do, feel free to tell me I'm ready to change all the code if it's really usefull.
My TileEntity is a block which send a specific packet to all player nearby himself , the radius and the packed data are configurable with one command(or a GUI but it's more difficult, i prefer a command that need to look at the block).