-
Posts
105 -
Joined
-
Last visited
-
Days Won
1
Everything posted by #ÖCT
-
Have you got an Idea how to send packets in 1.8.9????
-
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...
-
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))
-
And I think, this one is the right of those: this.players.add(new S38PacketPlayerListItem.AddPlayerData(gameprofile, k, worldsettings$gametype, ichatcomponent));
-
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));
-
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"?
-
This is the instances of the class, or not?
-
Ok, I hope I find now the correct one: worldsettings$gametype s38packetplayerlistitem$addplayerdata Is this the correct one?
-
I know it is difficulty with me sorry so much and thank you very much for your help!!
-
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
-
I try to show how I wanna to use the command and how does it (maybe) works...
-
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?
-
I`m not sure... shall I try it?
-
yes, of course! But for me it is not very obvious...
-
Yes, but i need to send a packet if the command runs, how does this go??
-
The command works, i need only to know how i can send a packet...
-
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!!
-
The Blocks and other stuff i have coded self
-
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...
-
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?
-
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...
-
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!!!
-
Is it "processPacket"?