Filled HorseMaster - Better horse control

Discussion in 'Plugin Requests' started by Dark_Serpent, Feb 13, 2016.

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

    Dark_Serpent

    Plugin category: Role Playing, Mechanics

    Suggested name: HorseMaster

    What I want: I would like a plugin that gives players better control of their horses, makes them more useful, while also allowing them to buy horses.

    Naturally tamed horses will still be possible, but they won't be involved directly with this plugin.

    First, creating a horse template.
    An admin will use the command /hm create (Name of horse) --color [color] --pattern [pattern] --health [health]
    By default the horse will be white with no patterns, base health and normal horse speed.
    If possible, --speed [speed] would also be added in order to determine how fast the horse moves, with 1.0 being the base speed.
    If it's possible to make your Summoned horses aggro once you are attacked, then a --damage [damage] variable would be nice, operating like the damage variables would on a diamond sword, and not ignoring armor.

    Second, buying horses.

    To buy a horse, you must purchase one from a sign. An admin would set the sign up as so:
    [BuyHorse]
    (Name of horse) i.e. HorseType1
    (Money) i.e 500
    Show Spoiler

    [​IMG]


    [BuyHorse] will appear as color code 1 once the sign has been properly created. A player may right click a sign and add this horse to his horse vault.

    To view a horse vault, a player will type in /hm list
    This is what he would see:
    Show Spoiler

    [​IMG]

    The default number of horses a player may own is 2. It may increased within the config. The config would appear like so:

    default:
    maxhorses: 2​
    donator1:
    maxhorses: 5​

    Default is how many horses anyone without a special permission can have. Any additional ranks added will appear as a permission, i.e. hm.donator1, giving these to a permissions group will grant them that many max horses.

    You can select a horse with /hm select (number)
    You can then Summon the horse next to you with /hm summon, you must have a horse selected for this to work.
    If you want to make the horse disappear, you can type in /hm return
    You can rename you currently selected horse with /hm rename (name), or by using a Nametag. Giving horses colored names will only be possible through Nametags.

    Horses by default cannot be damaged by any entity other than a player or monster. This includes potion effects, drowning, suffocation, etc.

    If a player is in your Faction, they will not be able to damage your horse (if possible).

    Horses you own cannot be mounted by other players. If you want another player to be able to mount your horse, you must transfer ownership of the horse with the command /hm setowner (name), which will relinquish ownership of your horse. After you relinquish ownership of your horse, you will no longer be able to mount it.

    Horses can also not be looted by players who do not own the horse. Only the owner may take off saddles and horse armor.

    Multiple horses cannot be Summoned at the same time. If attempted, a message stating "You cannot summon multiple horses!" will appear in chat with color code c.

    If a horse dies, it must be resummoned. Summoning the same horse will have a 30 second cooldown.

    To make things easier, when travelling a great distance, you can use the command /hm teleport to teleport the horse to you without needing to return and resummon it.

    Ideas for commands: /hm
    create (name)

    --color i.e. White, Creamy, Chestnut, Brown, Black, Gray, DarkBrown
    --pattern i.e. none, white, whitefield, whitedots, blackdots
    summon
    list
    return
    select (number)
    setowner (name)
    teleport


    Ideas for permissions:
    The only command that is not usuable by everyone is /create
    Max horses will be determined by whatever you named the subgroup. All players automatically have hm.default, but if a group or player is given a new rank, that is how many max horses they will have.

    i.e.
    hm.donator1
    hm.donator2
    hm.donator3
    hm.moderator
    hm.admin


    These must be defined within the config.

    When I'd like it by:
    Whenever possible! This looks like it'll be a long one. A million thanks for whoever wants to take up this beast of a plugin! Please tell me if you find something that would make this plugin easier, like changing/removing a feature, or making the commands and config operate differently!

    Additional Information:
    It must be able to work properly in Minecraft Version 1.7.10. Thanks in advance!
     
    Last edited: Feb 13, 2016
  2. Offline

    Dark_Serpent

  3. Offline

    Dark_Serpent

  4. Offline

    Corndogoz

    When you say pattern do you mean different breeds? Also does the player themself put the armor/saddle on it?
     
  5. Offline

    Dark_Serpent

    By pattern I mean the different styles of the horse, "no markings, stockings and blaze,snowflake appaloosa, paint and sooty" located here. And yes, players would put the armors and saddles on them.
     
  6. Offline

    Corndogoz

    i shall take the challenge :3

    EDIT: also do you want like a --age [age] or do all horses start as adults or babys?
    ANOTHER EDIT: i cannot find bukkit or spigot 1.7.10 anywhere, mabye a link?
    ANOTHER ANOTHER EDIT: found it :)
    ANOTHER ANOTHER ANOTHER EDIT :3: you will have to put in all -- arguments as if you dont, that will take a longggggggggggggggggggggggggggggggg time to code
     
    Last edited: Feb 17, 2016
  7. Offline

    Dark_Serpent

    First off, thank you so much!
    As for your questions, yes! An "--age [age]" would be a wonderful addition. It completely slipped my mind that it may be useful.
    As for a 1.7.10 build, I found this website, which lists numerous Spigot builds, but if you're looking for the one I use on my server specifically, I'll point you towards this link.
    Again, thanks a million!
     
    Last edited by a moderator: Feb 18, 2016
  8. Offline

    Corndogoz

    no problem, also the way horses work is only certain horse colors can have certain patterns, so im doing it so that if you type in an incorrect argument, it will tell you the patterns and everything you put in for example:
    /hm create --color [white | gray | brown] you get the point :3

    EDIT: do you use the plugin vault for money?
     
    Last edited by a moderator: Feb 18, 2016
  9. Offline

    Dark_Serpent

    @Corndogoz
    Alright, thanks! :D
    And yes, I use Vault.
     
  10. Offline

    Corndogoz

    status update: finishing up signs, horse spawning is setup, should be done today, tomorrow, or the day after that :)
     
  11. Offline

    Dark_Serpent

    Nice! Keep me posted :)
     
  12. Offline

    Corndogoz

    ran into a little problem with age, now its if age is set to 0, its a baby, if age is set to 1, its an adult
    EDIT: do you want age to be locked?
     
    Last edited: Feb 18, 2016
  13. Offline

    Dark_Serpent


    Yes, thank you.
     
  14. Offline

    Corndogoz

    if you respond quickly, and say no, the plugin possibly could be done tonight, otherwise it will take till tomorrow, first im just saying this is fully for horses, no donkeys/mules/other things, also do you want horses to save enchanted armor?
     
  15. Offline

    Dark_Serpent

    Alright, whatever is quicker and you deem to be the best option then. Sorry for the late replies, I've been caught up in a bunch of work and I haven't had the time to efficiently respond. As for the armor, yes, that would be lovely.
     
  16. Offline

    Corndogoz

    ok, the plugins mostly done, time for the easy part :) when a horse dies, does it die forever? or can the player respawn it? mabye after some time? currently every time the player summons the horse, its health is at max, tell me if you want it to die forever, or have the health at what it last was, mabye even have it regen? its all up to you :)

    isnt it only possible to loot a horse by getting on it? if not, i will code it :)


    * means done
    • signs*
    • summon*
    • select*
    • teleport*
    • list*
    • money
    • create*
    • setowner
    • other players cant mount
    • things cant damage
    EDIT: i just read the 30 second thing for spawning
    EDIT AGAIN: i just tested it, its possible if you shift right click the horse, it opens the inv
     
    Last edited: Feb 19, 2016
  17. Offline

    Dark_Serpent

    I really like the idea of the horse regaining health, though. Maybe have it so when the horse dies, it regens slowly throughout? One horse heart every 5 seconds I think would do nicely. But yeah, I don't want the horses to die permanently.
    Hm, I suppose the horse will be able to be looted by any vanilla means, but only by the owner, if that's alright.
    Looks like a lot of progress is being done! I'm amazed at your work, I know I say this a lot, but thank you so much :D
     
  18. Offline

    Corndogoz

    @Corndogoz
    ok, so that makes the player need to wait 5 seconds before spawning the horse or the health will be at 0 :) also, since armor saves currently, do you want me to disable dropping armor? as if not, it will cause duplicate items, or i dont have to save the armor/saddle, your choice :)
     
  19. Offline

    Dark_Serpent

    Yeah, it would probably be in the best interest to disable the dropping of armor and saddles xD
     
  20. Offline

    Dark_Serpent

    @Corndogoz
    Hey, just checking in! Totally cool if you're busy and all, so don't worry :) Just kinda curious
     
  21. Offline

    Corndogoz

    yeah, ive been busy, heres my current list:

    • signs*
    • health
    • wild tamed horses are not effected*
    • things cant damage*
    • other players cant mount*
    • setowner
    • create*
    • money
    • list*
    • teleport*
    • select*
    • summon*
    • config
    im currently working on the health, its almost done, and money will be easy, just setowner will take a bit longer as i will have to copy a whole section from the config(where the data is stored) into a new section, it should be done soon, but then i have to check for bugs, also for the enchanted armor, i checked it and horse armor cant be enchanted :3

    EDIT: health is currently done, working on setowner now :)
    EDIT 2: i shouldve asked you this a while ago, does your server use uuids? if you dont know, is it updated to the newest 1.7.10 version?
    EDIT 3: so is the setowner command for all players? if so, can the player give it to players of witch already have a max amount of horses?
     
    Last edited: Feb 21, 2016
  22. Offline

    Dark_Serpent

    No problem man, feel free to take your time with this one xD
    My server does use UUIDs, and that's something I didn't consider. If the player uses /setowner and targets a player with the maximum number of horses, could you possibly make it so that a message is sent to the player who used the command stating "That player already has the maximum number of horses!" in color code c? Thanks!
     
  23. Offline

    Corndogoz

    sure, that means its almost done :D although im not sure :3 ive had some problems with vault with permissions, but ive used vault with economys before so i think it will be done soon, also because of my problems with vault, when you have:
    default:
    maxhorses: 2
    donator1:
    maxhorses: 5
    its gonna be for the default group you give them perms maby hm.default and for donator1 it would be like hm.donator1 but after you add the perms it will all be in the config :)
     
  24. Offline

    Dark_Serpent

    That's perfectly fine :D Glad to hear that it's almost done, keep me posted
     
  25. Offline

    Corndogoz

    i currently cannot find the newest version of vault for 1.7.10, on bukkit dev it only has 1.8 builds, maybe a link?
     
  26. Offline

    Dark_Serpent

    I found them just fine, just go to the "/files" link
    http://dev.bukkit.org/bukkit-plugins/vault/files/
     
  27. Offline

    Corndogoz

  28. Offline

    I Al Istannen

    @Corndogoz You don't need to use Vaults permission as far as I know. The Bukkit getter worked just fine when I tried it with PEX. It might be incorrect though.... .
     
  29. Offline

    Corndogoz

    i was talking about groups with vault, im not using vault for permissions now, but instead im using it for the economy
     
  30. Offline

    Dark_Serpent

    I'm pretty sure 1.7.9 is compatible with 1.7.10, IIRC the only change between the two versions of Minecraft were a few bux fixes, nothing that would require a plugin update.
     
    Last edited: Feb 23, 2016
Thread Status:
Not open for further replies.

Share This Page