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.
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.
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
.... i didnt think that uploading the files showed them to everyone give me a few min and i will make a download link... plugin https://www.dropbox.com/s/8lzcqqfxuykhqvq/InvinsibleMobs.jar source https://www.dropbox.com/s/u69sa6muing6xqw/src.zip ... ignore this... it was working then i did something and it is no longer working feel free to go in and see what i messed up
[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
[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!
[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?
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.
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
Hmm even still, There are much better ways to approach this. Good luck with learning coding tho valithor2.
I totally agree. also another way you could fix multiple worlds is automatically add them and softdepend common multiworld plugins.
No need to depend on other plugins, events happen in certain worlds, if you get that world then you are done event.getWorld().getName(); And listening to WorldLoadEvent to get the config right
Kinda annoying to always add those plugins I even use that event when the plugin itself is a multiworld plugin XD But we are getting offtopic, I am done here
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
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.
Use this http://dev.bukkit.org/bukkit-plugins/megacreeps/ Setup the worlds, which mobs should be replaced and give them some crazy amount of hitpoints. Lots of potential wasted there, but it works.