Jump to content

#ÖCT

Members
  • Posts

    105
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by #ÖCT

  1. Have you got an Idea how to send packets in 1.8.9????
  2. Yes. I know... I create some Lucky Blocks for the 1.8.9... and all the people who play with it plays in 1.8.9 or 1.8 and I need that for the 1.8.9... I know it is difficulty...
  3. Yes, I know 1.8.9 is not good... But i need this for 1.8.9, it must be compatible with the Lucky Block Mods (Loot++, Lucky Block, Potioncore, etc. (1.8-1.8.9))
  4. And I think, this one is the right of those: this.players.add(new S38PacketPlayerListItem.AddPlayerData(gameprofile, k, worldsettings$gametype, ichatcomponent));
  5. Yes, I`m using eclipse. This one is, what you search, or not? this.players.add(new S38PacketPlayerListItem.AddPlayerData(entityplayermp.getGameProfile(), entityplayermp.ping, entityplayermp.theItemInWorldManager.getGameType(), entityplayermp.getTabListDisplayName())); this.players.add(new S38PacketPlayerListItem.AddPlayerData(entityplayermp.getGameProfile(), entityplayermp.ping, entityplayermp.theItemInWorldManager.getGameType(), entityplayermp.getTabListDisplayName())); this.players.add(new S38PacketPlayerListItem.AddPlayerData(gameprofile, k, worldsettings$gametype, ichatcomponent));
  6. for me it looks like an instance of the class, or isn`t it? When not can you say me how i can find this one -> "You will find some places where new instances of this class are created"?
  7. This is the instances of the class, or not?
  8. Ok, I hope I find now the correct one: worldsettings$gametype s38packetplayerlistitem$addplayerdata Is this the correct one?
  9. ok I try to do that.
  10. I know it is difficulty with me sorry so much and thank you very much for your help!!
  11. Ok, 1. First I open the packet 2. I try to find some instance-variables who sent the packet to player 3. I can`t find the instances Sorry
  12. I try to show how I wanna to use the command and how does it (maybe) works...
  13. ok, what i must do?
  14. Ok i think i must use the action REMOVE_PLAYER? maybe this? public void readPacketData(PacketBuffer buf) throws IOException { this.action = (S38PacketPlayerListItem.Action)buf.readEnumValue(S38PacketPlayerListItem.Action.class); int i = buf.readVarIntFromBuffer(); for (int j = 0; j < i; ++j) { GameProfile gameprofile = null; int k = 0; WorldSettings.GameType worldsettings$gametype = null; IChatComponent ichatcomponent = null; switch (this.action) { case REMOVE_PLAYER: gameprofile = new GameProfile(buf.readUuid(), (String)null); } this.players.add(new S38PacketPlayerListItem.AddPlayerData(gameprofile, k, worldsettings$gametype, ichatcomponent)); } } or this? public void writePacketData(PacketBuffer buf) throws IOException { buf.writeEnumValue(this.action); buf.writeVarIntToBuffer(this.players.size()); for (S38PacketPlayerListItem.AddPlayerData s38packetplayerlistitem$addplayerdata : this.players) { switch (this.action) { case REMOVE_PLAYER: buf.writeUuid(s38packetplayerlistitem$addplayerdata.getProfile().getId()); } } } or did i understand your instructions false?
  15. I`m not sure... shall I try it?
  16. yes, of course! But for me it is not very obvious...
  17. Yes, but i need to send a packet if the command runs, how does this go??
  18. The command works, i need only to know how i can send a packet...
  19. I have got coded a 4x4 and a 16x16 crafting table, but i used the mc-code and change only some things... But can you please help me with my problem, i need that so much please!!
  20. The Blocks and other stuff i have coded self
  21. For the Tile-Entities I used a tutorial and change the block for my things, further i haven`t got any idea how does it exactly works...
  22. I've searched some Mods WHO does similar things but i can't find one with an src Code... do you mean with "playerinteractionmanager" the playermanager?
  23. Blocks, Items,Textures, Recipes are no Problem for me, you can sea my projects in the Video of Benx. Tile-Entities i have done with a tutorial...
  24. I'm very new in Forge modding. The Basics i can do, but I think that what i wanna to too complicated for me... But I try to figure that out, i wanna to learn programming... I'm only 13 years old, sorry that I annoy you, but I wanna to figure that out!!!
  25. Is it "processPacket"?
×
×
  • Create New...

Important Information

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