Invincible Mobs

Discussion in 'Archived: Plugin Requests' started by HerobrineLivesHere, Sep 22, 2013.

  1. Plugin category: Admin Tools

    Suggested name: Invincible Mobs

    What I want: I'd like to see a plugin that allows the admin to set in a config wich mobs is going to be invincible and who that isn't. The plugin should also have per-world settings. Like in one world you can have creepers to be invincible but in the nether, they are not invincible. The config will add all the mobs by it self and they are not invincible by default. The config should be like this for example:
    world:
    creeper:
    invincible: true|false
    skeleton:
    invincible: true|false
    (Rest of all the other mobs)
    world_nether:
    (Same as above)

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin

    When I'd like it by: ASAP but take your time. :)
     
  2. Offline

    tommycake50

    Sure i'll give it a go :).
    Got science homework to do though so if im done with that early ish i'll try do it later tonight, if not, tomorrow.
     
  3. Thank you! :D
     
  4. Offline

    valithor2

    I am new to the bukkit developing community and this plugin is the first one i have ever made. I have more planned but for now this is all that I had time to make. I included the source in case if you wanted to look in it for some reason.

    --valithor2
     

    Attached Files:

  5. Offline

    AndyMcB1

    ?
     
  6. Offline

    valithor2

  7. Offline

    valithor2

    [quote uid=90681423 name="HerobrineLivesHere" post=1864980]It says the file has been moved.[/quote]
    plugin
    <Edit by Moderator: Redacted mediafire url>
    source
    <Edit by Moderator: Redacted mediafire url>

    Right now i am trying to fix this but in order to get this to work when you change the no to a yes in the config remove the 2 quotation marks around it
     
    Last edited by a moderator: Nov 5, 2016
  8. [quote uid=90863013 name="valithor2" post=1865159]plugin
    <Edit by Moderator: Redacted mediafire url>
    source
    <Edit by Moderator: Redacted mediafire url>

    Right now i am trying to fix this but in order to get this to work when you change the no to a yes in the config remove the 2 quotation marks around it[/quote]
    Thanks! :)
     
    Last edited by a moderator: Nov 5, 2016
  9. Offline

    tommycake50

    [quote uid=90863013 name="valithor2" post=1865159]plugin
    <Edit by Moderator: Redacted mediafire url>
    source
    <Edit by Moderator: Redacted mediafire url>

    Right now i am trying to fix this but in order to get this to work when you change the no to a yes in the config remove the 2 quotation marks around it[/quote]

    I'm sorry but this is done wrong and inneficiently.
    I don't like to criticize code but there is quite a bit wrong with this.
    Just an example, what if they have MultiWorld worlds? or different world names?
    etc.
    And why do you store variables in the listener when you can just use getters?
     
    Last edited by a moderator: Nov 5, 2016
  10. Online

    timtower Administrator Administrator Moderator

    Not to criticize you but:
    MultiWorld is one of many plugins, but configurable world name solve that trick, and why not store variables in the listener?
    Everybody has its own way to code, that is just something that you have to respect.
     
  11. Offline

    valithor2

    As i said that is my first plugin i have NO java programming experience, and i have already started working on a way to add new worlds easily from within game. Everything that was put into that plugin is from the 5 or 6 short bukkit programming tutorials that i watched on youtube a couple of days ago.

    My only programming experience is a small amount of ComputerCraft lua
     
  12. Online

    timtower Administrator Administrator Moderator

    For that amount of time this is pretty good
     
  13. Offline

    tommycake50

    Hmm even still, There are much better ways to approach this.
    Good luck with learning coding tho valithor2.
     
  14. Online

    timtower Administrator Administrator Moderator

    Hmm even still, everybody makes mistakes, certainly if it is their first time
     
    tommycake50 likes this.
  15. Offline

    tommycake50

    I totally agree. also another way you could fix multiple worlds is automatically add them and softdepend common multiworld plugins.
     
  16. Online

    timtower Administrator Administrator Moderator

    No need to depend on other plugins, events happen in certain worlds, if you get that world then you are done :p event.getWorld().getName();
    And listening to WorldLoadEvent to get the config right
     
  17. Offline

    tommycake50

    No not depend softdepend so they load first and just use getServer().getWorlds()
     
  18. Online

    timtower Administrator Administrator Moderator

    Kinda annoying to always add those plugins :p
    I even use that event when the plugin itself is a multiworld plugin XD
    But we are getting offtopic, I am done here
     
    HerobrineLivesHere likes this.
  19. Offline

    tommycake50

    Ok so I did a version too only it has a command for setting invincibility of the mobs the command is /setinvincible and the perm node is invinciblemobs.set.
    Download includes source and jar.
    <Edit by Moderator: Redacted mediafire url>
    bukkitdev page:http://dev.bukkit.org/bukkit-plugins/invinciblemobs
     
    Last edited by a moderator: Nov 5, 2016
  20. Offline

    valithor2

    I stored the variables for a easy way to debug while making it i knew that i could have just used the getters
    I was planning on adding commands for changing invincibility and adding worlds in game, but ran out of time last night.

    Sorry for late response when i responded earlier was at school and was unable to read all of the comments.
     
    tommycake50 and timtower like this.
  21. Offline

    tommycake50

    Ahh that explains it.
     
  22. Offline

    DeMaggo

Share This Page