August 25, 201312 yr Because you have to send it (very bottom of the tutorial page) -- makePacket() just creates the packet and nothing more. When I remove the queue stuff, it doesn't do anything at all. Also, the side variable in OutgoingWormholePacket.execute is being set to SERVER, but it's still executing on the client, which is definitely very strange... I like to make mods, just like you. Here's one worth checking out
August 25, 201312 yr Try looking at my discontinued mod's packets, MinePG. link: https://github.com/ModderPenguin/MinePG/tree/master/source/minepg/rpg_common/rpg/network/packet I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
August 25, 201312 yr Try using an update flag when setting fire block to air: worldObj.setBlock(x, y, z, 0, 0, 0x02); 0x02 automatically sends update to the server, thus you won't have to mess with packets. If i helped you, don't forget pressing "Thank You" button. Thanks for your time.
August 25, 201312 yr Author G'morning. Try using an update flag when setting fire block to air: worldObj.setBlock(x, y, z, 0, 0, 0x02); 0x02 automatically sends update to the server, thus you won't have to mess with packets. I already tried that out. That was my very first thought, but "Flag 2 will send the change to clients" (description). So I thought to set up a tick handler on server side and make him do the setBlock stuff, but didn't work out. I guess I need to do something with packets. €dit: My main issue is that it MUST be possible without sending packets (see client code). I'll be searching for some more useful code until I get back here.
August 25, 201312 yr You haven't wrote that you tried 0x02 flag. Also, it's usage supposes you're doing it on client, not «set up a tick handler on server side and make him do the setBlock stuff». If i helped you, don't forget pressing "Thank You" button. Thanks for your time.
August 25, 201312 yr Author Sorry, I was a bit unclear. Yes, I used the 0x02 flag earlier, but it didn't work. I used it in client and AFTER that, I tried this server tick handler thing.
August 26, 201312 yr Author Okay, I solved that issue. I needed to access the world from the integrated server (WorldServer) and set the block there to 0. Finally it worked.
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.