Ride and control a iron golem

Discussion in 'Plugin Development' started by ArthurHoeke, Apr 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ArthurHoeke

    Hello
    How to make with remote entities that you can ride a golem and walk on him?
     
  2. Offline

    Heirteir

    ArthurHoeke
    Why use remoteentities for such a simple task?
     
  3. Offline

    ArthurHoeke

    Heirteir It isnt simple? How to make that if you walk forward the iron golem under you does that?
     
  4. Offline

    Ezrab_

    Maybe it's simple but this is a forum so you can ask everything so don't tell us stupid answers if you think this is simple go and code the whole plugin self nOOb
     
  5. Offline

    Heirteir

    ArthurHoeke
    Sorry for late reply quite simple
    Code:java
    1. @EventHandler
    2. public void rightclicked(PlayerInteractEntityEvent e){
    3. if (e.getRightClicked() instanceof IronGolem){
    4. e.getRightClicked().setPassenger(e.getPlayer());
    5.  
    6. //Do Code to check to see which directions the move
    7. }
    8. }
     
  6. Offline

    ArthurHoeke

    Heirteir I know how to give the golem a passenger but how to move the golem when te player moves>?
     
  7. Offline

    Ezrab_

    • If you are unable to assist, walk away. Badgering a person is not acceptable behavior.
    NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOB
     
  8. Offline

    Heirteir

    ArthurHoeke
    Use the PlayerMoveEvent and detect for X Y Z Changes when the chacter moves and make the iron golem move relative.
     
  9. Offline

    TheMcScavenger

    If the player tries to move while on an iron golem, does it still call the PlayerMoveEvent? If so, move the irongolem ;)
     
  10. Offline

    ArthurHoeke

    TheMcScavenger Thats gonna be buggy.
    EDIT: And you can't move on a iron golem so you cant detect moving..
     
  11. Offline

    Heirteir

  12. Offline

    TheMcScavenger

    Like I said, if it still calls the event, move the iron golem. I never said it would, and I never said it would work.
     
  13. Offline

    ArthurHoeke

    TheMcScavenger you can't move on a iron golem so you cant detect moving..
     
  14. Offline

    TryB4

  15. You can change the golem's velocity in the player's direction.
     
  16. Offline

    Codex Arcanum

    You should stop commenting on this thread if you don't have anything constructive to say. Your first reply, which I'll summarize as saying "If it is so simple, then you should explain it" was appropriate, although calling the previous commenter a noob was unnecessary. Your second and third posts seem to have only been intended as insults, and I think that we all would appreciate it if you would restrain yourself to only comments that can be considered at least vaguely constructive.
     
    KingFaris11 and Heirteir like this.
  17. Offline

    Heirteir

Thread Status:
Not open for further replies.

Share This Page