Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Knux14

  • Rank
    Stone Miner


  • Gender
  • Personal Text
    I am new!
  1. mmh actually I'm not that done.. I am doing pretty much the same thing, once the player has set it server-side, I send another packet to sync the ExtandedProperties: public IMessage handleClientMessage(final EntityPlayer player, final UpdateClientMessage message, MessageContext ctx) { final Minecraft mc = Minecraft.getMinecraft(); mc.addScheduledTask(new Runnable() { @Override public void run() { System.out.println("Tries to get it"); PlayerProps pp = PlayerProps.get(player); System.out.println("Got it: " + pp.toString()); pp.setName(message.fName, message.lNam
  2. This is working indeed, Thank you I haven't modded for a while those thinks looks kinda new to me..
  3. Hello, So, recently I started my mod, which is designed to be played multiplayer without any other mod. In this mod, the server send a "OpenGui" Message/Packet, and the client need to open a GUI in which he will put a first name and a last name. Then the client need to send back a "SetName" Message/Packet. Right now I implemented this as is: - PlayerLoggedInEvent detect a player connection. After checking that the world !isRemote, I send a OpenGuiMessage(Login) to the player - When the client receive "OpenGuiMessage(Int)" it opens the Gui "Int" with a simple "mc.displayGuiScreen"
  4. Yes I know, I already used it, but I don't understand how the packet is supposed to say "THAT entity", how to select MY entity, Because I won't be able to include a whole entity in the packet and I don't think I can have "Update name of Entity at X/Y/Z" Here's my sourcecode: https://github.com/Knux14/Stuffies/tree/master/fr/Knux14/Stuffies
  5. Okai so it's now pretty much working. All I do is add if (!w.isRemote) In the interact of the Entity. Now I need to get the name from the server, Am I forced to use packet ? Is there any other ways?
  6. ow that would explain everything... I'm gonna try something, I'll let you know
  7. Hello everyone, Today I tried to make a boat but I am in front of a problem. Data doesn't works. In the rightclic method I have the username correctly working but if I print the username in the interact method I get "null" Here's my codes: ItemFlycar: https://gist.github.com/Knux14/8887545 EntityFlycar: https://gist.github.com/Knux14/8887547 RenderFlycar: https://gist.github.com/Knux14/8887556 I've tried several different way but nothing is working. Here's what I currently get for ONE right clic: http://screencloud.net/v/52oT I don't understand why the function is trigger
  8. Okay I found the bug. I was posting the events in the "updateEntity" and "invalidate" methods of the TileEntity. I moved them in the "onBlockAdded" and "breakBlock" events and now it works fine. Thank you
  9. I've didn't found where to post EnergyNet has a remove tile entity method that you need to use when the block is broken. It seems that it doesn't contain it, here's my IEnergyNet class: https://gist.github.com/anonymous/8189898 I've found this on google which seems to have it but it also seems to be a bit old: http://atomicstrykers-minecraft-mods.googlecode.com/hg-history/853343e5b365415ccfc8583059ca7bf3d87ba538/PowerConverters/common/ic2/api/EnergyNet.java I have an event which is supposed to do the same as EnergyNet.removeTileEntity() => EnergyTileUnloadEvent but it
  10. Hello I am making a mod which using the IC2 api bug I got a problem. The tile entity seems not to be removing. Here's my code: https://gist.github.com/anonymous/8188707 I've already tried by using "world.removeBlockTileEntity(x, y, z)" but it's still giving me the same error... When I place the block (Or any IC2 blocks) where I destroyed one of mine, i get this error in the logs: 2013-12-30 22:37:38 [Avertissement] [iC2] EnergyNet.addTileEntity: fr.Knux14.Electools.TileEntity.TileEntityTeleportBlock@85fc923 (fr.Knux14.Electools.TileEntity.TileEntityTeleportBlock@85fc923) is c
  11. Okay thanks, i've already tried with IConnectionHandler but it does not seems to work serverside (The connect is only clientside) I'll try it right now
  12. Hello everyone, I'm searching a way to detect when a player is connecting and when is deconnecting. I've looked in the events but the only one i've found is "playerJoinWorldEvent" which is triggered every time a player is changing dimension ... I didn't managed to find a way to get what i want. Did anybody knows how could I do it ? Thanks in advance
  13. Mmh sorry for the doublepost but, I have the world name but I need the Folder... I can't get it by this way and I can't just use the function "makeUsableName" because if the player has renamed the world it won't be the same folder ...
  14. By using a coremod: http://www.minecraftforum.net/topic/1854988-tutorial-162-changing-vanilla-without-editing-base-classes-coremods-and-events-very-advanced/ or http://www.minecraftforge.net/wiki/Using_Access_Transformers or By using reflexion: http://tutorials.jenkov.com/java-reflection/index.html Coremod is the way to do because it's Forge based. But reflexion works too.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.