Jump to content

Stefinus321

Members
  • Posts

    15
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Stefinus321's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Oh wait it does work when you are in survival... Fair enough.
  2. Ok I changed the video link, now it does work. And I'm sorry i used the free version of dxtory. I hope you won't break down your computer because you got annoyed by the Dxtory banner. And no, I'm not sponsored.
  3. To know what I just take an item and right click it on a block (it should be bobbing up and down). https://www.youtube.com/watch?v=JYGf_wL_UpI&feature=youtu.be How to stop that? It does that for every item, including the bow, but that gets masked because of the action a bow does.
  4. Well i fixed it myself, but it was not just a tick handler, I just didn't explain the whole thing enough so you couldn't know that.
  5. What i want to achieve is: like in the example i gave, keep adding 1 to x untill it becomes equel to y, then do z and stop.
  6. What i need to happen is: if(x == y) {do z} else {add 1 to x and repeat this whole thing} So I tried just adding ModFile.INSTANCE.sendToServer... (how I initially sent the message), but the server (the actual server program) doesn't like that. Error: And using return new ReloadMessage(); doesn't repeat it. So what now?
  7. So it works fine without the heldItem part, but when i add that, it "crashes" (it shuts down and returns to the main menu). The Message class (don't mind the "value") The "crash" in the console.
  8. Welp, i got it to work. I needed to add EntityPlayer player = ctx.getServerHandler().playerEntity; and then EntitySnowball ball = new EntitySnowball(world, player);
  9. Ok i changed to the Simple Network Wrapper (way easier than the PacketPipelin one). And now, say i wan't to spawn a snowball, that what i tried did not work. the onMessage (the package is send to the server, ofcourse. I guess this is not the way to do it.
  10. So I got a working keybind, but i can't spawn any entities in it. What now? I got the idea of sending a packet, but i don't know what i need to send with it nor how i then actually need to make the entity spawn (I'm quite new to packets). KeyHandler (it works, but what now?) PacketPipeline class (everything ok?) The actual packet (what do i need to write where?)
  11. Welp, can't sue you for having fun. But now let's ignore him and get on.
  12. As for the link you gave, the only thing i can find is RIGHT_CLICK_AIR, RIGHT_CLICK_BLOCK, LEFT_CLICK_BLOCK, i need LEFT_CLICK_AIR, which doesn't exist. Next, the tick handler, if i want ti to check keys, it needs to be client side, but entity spawning is server side (correct?). Also, how do I only let it check if i click if I'm not in the menu or looking in my inventory or containers or stuff like that?
  13. I've been trying tons of things, but nothing works as I wan't it to. That is: -you can left click in the air -it has to keep repeating as long as left mouse button is down -it needs to work at a good speed (not too much time between checking wether left clicking or not). Please help me and keep in mind that I'm not too good in coding so... Sorry for my english and sorry if I somehow insulted you
×
×
  • Create New...

Important Information

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