[Oxygen] Basic breathable areas

Discussion in 'Plugin Requests' started by Solaris_88, Jan 12, 2015.

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

    Solaris_88

    Plugin category: I don't know

    Suggested name: Oxygen

    What I want: I am looking for a plugin, where I can set up areas, or worlds that you can not/can breath in without wearing a specific armor suit and mask (Suit and mask ID's are changeable in the config) For an example, I would need to put on full white leather armor and a helmet (all items changeable in the config) to be able to breath in a specific world (set a world in the config)

    You can also set special breathable areas so you can take off your "suit" when in these areas (Select the areas using world edit)
    I would like customizable messages saying when you are in a Breathable area, saying when you're no long in a breathable area, and when you are taking damage when you do not have your suit on when not in a breathable area/world.

    Ideas for a config:

    #Breathable worlds
    world name: [world name] #Copy and past this to add more worlds
    #Suit Items
    Boots: (ID)
    Leggings: (ID)
    ChestPlate: (ID)
    Helmet: (Player's Head or ID) *If possible* I would very much like to use a player's head for this. If it's possible that would be great. I know what player head I would like to use, so if it would be easier to just set it so you can only use that certain player's head I can tell you the name.


    Ideas for commands: /Breathableworld [world] true/false /Breathablearea true/false (After you select the points with world edit.


    Ideas for permissions: breathableworld.set - breathablearea.set - Suit.use (lets you use the suit. Players WITHOUT this permission do not see the messages stated above)

    When I'd like it by: As soon as you can please :)
     
  2. Offline

    SharpBombsMC

    This is impossible if you want to add a separate armor texture else i MIGHT work on it
     
  3. Offline

    Solaris_88

    What do you mean a separate armor texture?
     
  4. Offline

    SharpBombsMC

    Like a space helmet :p or something do you want that? like if you cant breath in are1 but u can breath in are2 then get a gold helmet to breath in are1?
     
  5. Offline

    Solaris_88

    I know that you can't change the textures of armor :p That's why I asked if it's possible to make the helmet a players head. ByVoltz's head to be exact ( As his head is a space helmet, found here http://www.planetminecraft.com/blog/minecraft-playerheads-database-85-heads-tutorial-included/ ) And yea. For example you can breath in spawn without the armor or helmet. But if you go out of spawn you start losing health and a message pops up saying *You're suffocating* Or something (I would like to be able to change the messages in the config)
     
  6. Offline

    SharpBombsMC

    Ok so if we do the command /helmet it will get the helmet There hea to the player else they will suffocate correct?
     
  7. Offline

    Solaris_88

    Well. Yes but I would rather not do it with commands. Well actually I guess I could set up some custom GUI with SimpleGUI to issue the commands and to take money out of the players balance... Yeah sure lets do that. Make it so they can do /helmet or then /suit to get the armor and then maybe /fullsuit to get them all at once. If that makes sense :p
     
  8. Offline

    pie_flavor

    Or maybe a crafting recipe? And perhaps put an enchantment like Infinity on them so that players can't just dye vanilla leather armor with bonemeal.
     
  9. Offline

    Solaris_88

    Good idea @pie_flavor :D I was going to just block it so they can't craft it. But now that I think of it that might cause some trouble with another plugin :p @SharpBombsMC do you think you would be able to do that? And is it safe to assume that you are willing to create this plugin?

    @SharpBombsMC I would really like to know if you are going to take on this plugin.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 13, 2016
  10. Offline

    caderape

    @Solaris_88
    https://www.dropbox.com/s/g4hchb1ltoq6llp/Oxygen.jar?dl=0

    Take a look. it's not the final version, it's for test. Try it and tell me if you see errors or something to change.
    Commands: /oxygen or /oxy
    Permission:
    oxygen.create : for create an area.
    oxygen.settings : for modify an existing area.
    oxygen.armor : get the armor suit.
    oxygen.bypass : for bypass the restriction

    Edit: i will add later the way to create safe area in a world without breath
     
  11. Offline

    Solaris_88

    Dude awesome! I'll test it when I get home. Should be about an hour. Thanks!
     
  12. Offline

    XgXXSnipz

  13. Offline

    Solaris_88

    He never got back to me.
     
  14. Offline

    timtower Administrator Administrator Moderator

    @Solaris_88 You was gonna test it though and never said anything after that
     
  15. Offline

    XgXXSnipz

  16. Offline

    Solaris_88

    @timtower I sent it through PM, as for some reason I could not post a comment on my phone (I figured that would be alright, as he was still going to post the finished product here.)
     
  17. Offline

    timtower Administrator Administrator Moderator

    @Solaris_88 Don't use the PM for that, this thread exists for a reason.
     
  18. Offline

    Solaris_88

    @timtower Okay. Sorry it's just it wouldn't let me reply on my phone, I was at school.
     
  19. Offline

    XgXXSnipz

  20. Offline

    Solaris_88

  21. Offline

    Solaris_88

  22. Offline

    MisterErwin

    @Solaris_88 Why are you bumping this?
    Afaik someone else already made a plugin & I can't see any (public) feedback...
     
  23. Offline

    caderape

    @Solaris_88

    https://www.dropbox.com/s/g4hchb1ltoq6llp/Oxygen.jar?dl=0

    Here we go. It should be the final version.

    You can create area for the world or with the world edit selection. You can set parent for area or childrens, define if they can breath or no.

    The permission 'oxygen.settings' can just set an area breathable or no. Area Management is the admin permission.

    The armor suit is in leather. You wanted to be able to change the color, it's the only way.
    You can define a name for the item, or no. A color, by default it's white, And enchantments.
    If you don't want the full suit, just put a # for cancel the line, like for the boots.

    The only problem i have, if someone know how to resolve it, it's how to restart the scheduler.
    When the plugin load, the task start with the time defined in the config.
    i've tried to do a canceltask, then restart the sceduler with a runTaskTimer(), but i got this error, "the scheduler is already running".

    So if someone have a solution, it would be great ;)

    Note: I give up for the head you were asking, i dun know how to do it.
    Note2: If you want, i can implement a way to buy the suit with sign.
     
    Last edited: Jan 28, 2015
    Solaris_88 likes this.
  24. Offline

    Solaris_88

    Great, Thank you :)
     
  25. Offline

    Solaris_88

    @caderape I found a bug.
    When the server restarts, the areas seem to delete/reset.
     
  26. Offline

    caderape

  27. Offline

    Solaris_88

    @caderape Thank you :) It works great now!
    So is that a no that you couldn't use /give {player} minecraft:skull 1 3 {SkullOwner:"{PlayersHeadName}" to have his head used for a helmet?
     
Thread Status:
Not open for further replies.

Share This Page