Jump to content

Jacky2611

Members
  • Posts

    499
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Jacky2611

  1. EDIT(couldn' Edith original post): but in order to send a packet i need the player. How do i geht the player inside the keybinding class? Also, as far as i know, i need an entity player/entity player mp in order to do anything with him. how do i convert player to entity player?
  2. Packets coming from a player will pass a player entity to your packet handler. Its like magic: public void onPacketData(INetworkManager manager, Packet250CustomPayload packet, Player player) { } I idiot stupid...
  3. Yeah, i know that i have to use packets... But i don't know how to send the players name with packets/how i can figure out who sent the package... everything else shouldn't be a problem.
  4. The solution is now a bit different too. You just have to make a change in your code and it will be fine. Like I don't know that. But I don't know what the problem is, neither how to fix it! Can you push me in the right direction? Like what the problem is? Well, we can't help you if you don't tell us how your problem changed. I think you should use 1.6.4 if you are new to modding with forge. Just few mods have already updated , and most players won't use 1.7 if their favourite mods aren't ready.
  5. Can nobody link me some tutorials or examples?
  6. Hi! I have some problems with the key binding for server. for sigleplayer i use: in the main class KeyBindingRegistry.registerKeyBinding(new DimensionShiftKeyHandler()); TickRegistry.registerTickHandler(new PlayerTickHandler(EnumSet.of(TickType.PLAYER)), Side.SERVER); Key registry TickHandler This code works good in ssp, but my server crashes on startup.(userinput is completely new for me...) As far as i understand i have to add a packet handler. Can someon give me a hint how to this? (I need the coordinates + name of the player who pressed the button) thx in advance, Jacky
  7. Yeah thx, this is exactly what i want for the beginning. Can u link me a tutorial/example/documentation to learn from? I never die something linke this before. Next step would be to get only blocks that are somehow connected to my main Block. Any idea how to do this?
  8. Hi! I just started making my first really big mod (already got blocks, items, really scary textures...) but now 2 problems turned up. I want to "teleport" a selected part of the world (+all entities+player) to other coordinates and dimension(passed as arguments). In order to do so i first need to mark a part of the world.(either by marking every block/mob/player that touches the main controlling block/a block that touches the main controlling bock... or by simply selecting a sphere) Then i would have to move every selected block to the new location. Since im pretty that there is no "move" command(is there?) i think that it would be the best to copy it to the new location, delete the old blocks and finally to teleport the players. (is there any simple way to create a schematic file ingame?) Can someone link me an example or a tutorial? would be really great if you could help me thx in advance, Jacky2611 Ps: Im to 99.99% sure that this is the wrong section... pls move this topic
×
×
  • Create New...

Important Information

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