Instant Tamer

Discussion in 'Plugin Requests' started by coolman300011, Jan 27, 2016.

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

    coolman300011

    Suggested name: Instant Tamer

    What I want: What i would like is when you feed a horse an apple when riding it, you would instantly tame it

    Also if you can make a horse with a gui for its speed and jump hight so you can customise it to your likings

    Ideas for commands: /tamer - opens a gui so you can customise the speed and jump hight of your horse

    /tamer reload

    Ideas for permissions: tamer.reload - reloads plugin

    tamer.allow - allows player to use commands

    When I'd like it by: Any Time
     
  2. Offline

    coolman300011

  3. Sounds like nice and lightweight plugin... I would like to use this on ocelots...
     
  4. Offline

    scarabcoder

    I don't know if you can instantly tame a horse when you are on it. As in, there isn't a way for a plugin to detect right clicks on an entity you are riding. I'm not completely sure, though.

    EDIT: I'll be making it so when you right click with an apple while riding a horse, then it will tame, whether or not you right click the apple.
     
  5. Offline

    WolfMage1

    Call the PlayerInteractEntityEvent, get the entity they interacted with, check if it's a living entity, check if it's tameable, check if it's tamed (you also want to check if it's an adult to as baby entity's aren't tameable) then setTamed to true, set the owner to the player and there you go.

    Also, I would only do it if they shift right click the entity with an apple, as people might not want to use their apples if they've just started.
     
  6. Offline

    scarabcoder

    What I meant was, the entity interact event might not work on the entity the player is riding. I forget why, but I believe I tried it at one time.
     
  7. Offline

    WolfMage1

    I'm going to try it and see if you can, (not going to take your plugin request from you dw)

    @scarabcoder
    You actually can do a lot with it and a lot of funny things too.
     
    Last edited: Jan 30, 2016
Thread Status:
Not open for further replies.

Share This Page