Jwosty Posted August 25, 2013 Share Posted August 25, 2013 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... Quote I like to make mods, just like you. Here's one worth checking out Link to comment Share on other sites More sharing options...
Mew Posted August 25, 2013 Share Posted August 25, 2013 Try looking at my discontinued mod's packets, MinePG. link: https://github.com/ModderPenguin/MinePG/tree/master/source/minepg/rpg_common/rpg/network/packet Quote 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 Link to comment Share on other sites More sharing options...
Naiten Posted August 25, 2013 Share Posted August 25, 2013 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. Quote If i helped you, don't forget pressing "Thank You" button. Thanks for your time. Link to comment Share on other sites More sharing options...
sep87x Posted August 25, 2013 Author Share Posted August 25, 2013 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. Quote Link to comment Share on other sites More sharing options...
Naiten Posted August 25, 2013 Share Posted August 25, 2013 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». Quote If i helped you, don't forget pressing "Thank You" button. Thanks for your time. Link to comment Share on other sites More sharing options...
sep87x Posted August 25, 2013 Author Share Posted August 25, 2013 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. Quote Link to comment Share on other sites More sharing options...
sep87x Posted August 26, 2013 Author Share Posted August 26, 2013 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.