Posted May 11, 201312 yr Hello! The title pretty much says it all... Im creating a entityMob on the server with a cunstructor that takes World and NBTTagCompound as argument. Using the spawn in world command. Had to add constructor that only takes World as argument else the client side would crash. I was woundering how do i send over the compound from server side to client side? Or is there a good way to fast send over ints and other variabels? [edit]: the data on the server is needed for rendeing on the client. Regards DND
May 11, 201312 yr If you're sending anything between Server/Client, you need to use Packets and their appropriate Handlers. Open up NetClientHandler, NetServerHandler, and the net.minecraft.network.packets area to see what I mean. Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help! http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/
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.