[INACTIVE][RPG/FUN] BlackLung v3.5 - Coal Mining is Dangerous! Explosions & Fires & Gases![1060]

Discussion in 'Inactive/Unsupported Plugins' started by chernobyl360, Jul 19, 2011.

  1. Offline

    chernobyl360

    TAKE THE CODE DO WHAT EVER YOU WANT WITH IT. GIVE ME CREDIT THOUGH.


    BlackLung
    Acknowledgements:
    @DrBoweNur - For Helping me finally figure out Configs :D
    @Adamki11s - For Allowing me to use his Smoke Code!
    @ShameBot - for helping me fix the explosions.

    V3.5
    This is a super simple and yet fun addon for RPG servers. Coal is supposed to make you sick and with this plugin it has brought that appeal back!

    Features:
    • Wear a helmet to not get damage
    • When Explosion Happens Players Will BURN!
    • Random Explosions - Configurable!
    • Smoke on block damage
    • Configurable BOOM Radius!
    • Configurable Messages
    • Configurable Damages
    • Hurts Players When COAL_ORE is broken.
    Configuration:
    WHEN UPDATING REMOVE CURRENT CONFIG AND ADD PLUGIN!USE NOTEPAD++ TO EDIT!!!!
    YOU HAVE BEEN WARNED! NO MORE THEN 20 ON BOOM RADIUS! IT WILL CRASH YOUR SERVER! MAKE SURE RANDOM BOOM IS SET NO MORE THEN 50!!! IT WILL CRASH SERVERS!!!

    Code:
    BlackLung:
        Damage-Message: '*cough*'
        Random-Boom: 1
        Fire-Ticker: 200
        Coal-Damage: 1
        Boom-Radius: 20
    FireTicker Means The Length Of Time Player Will BURN!

    GasMask:

    Code:
    Wear These:
    Leather Helmet
    Iron Helmet
    Diamond Helmet
    Flak Helmet
    Gold Helmet

    Download:

    http://www.gamefront.com/files/20655498/BlackLung.jar

    Source:

    https://github.com/ChernobylStalker/BlackLung

    Todo:
    • Catch All Nearby Blocks On Fire
    • Limiter For BOOM Radius
    ChangeLog:
    • v3.5 updated to 1060cb/b
    • v3.5 configs wont work correctly for the random events so i hard set it to 150. this is set high to reduce the lag and make it more realistic. (hopefully)..... well everything else works great on the configs.... just follow the instructions carefully to config it urself :D
    • Another Huge Update! Added Configurable explosions/fire damage. added random explosions when mining.added fires. all configurable!
    • MASSIVE update! Redid the Block Listener. It now has smoke on Block Damage. Wear A Helmet To Survive. Removed the onBlockBreak.
    • Fixed a coding issue. Should be fixed now. v2.0 thanks to @MoxieWhimsy for pointing out my coding error.
    • Released v1.5 CB 1000 Configuration! thanks to DrBoweNur
    • Released v1.0 CB 1000 i was bored sorry if this plugin was a waste.
    [​IMG]
    Based on a work at github.com.​
    Permissions beyond the scope of this license may be available at http://forums.bukkit.org/threads/rp...rous-explosions-fires-gases-1060.27137/page-2.​
     
  2. Offline

    flozza83

    Do you know why it happens chernobyl please ?
     
  3. Offline

    chernobyl360

    try it now. sorry, i did an allnighter coding a new plugin and i was extremely tired so i accidently exported my new plugin in the same location as Blacklung.
     
  4. Offline

    flozza83

    Hi chernobyl. I just tested that new version and is working! thanks you =))
    Just a conflict with LogBlock:

     
  5. Offline

    angelofdev

    @chernobyl360
    This is awesome!

    Also is there a way to stop explosions?
    This is my current config with Boom-Radius set to 0.
    Code:
    BlackLung:
        Boom-Radius: 0
        Damage-Message: '*cough* Wear a gas mask!'
        Random-Boom: 50
        Fire-Ticker: 0
        Coal-Damage: 1
    
    With the config above every coal ore that gets mined plays the explosion sound. Which is quite annoying.

    I tried setting 'Random-Boom:' to 0 in hopes of disabling it all together but that keeps giving this error:
    Code:
    2011-08-10 12:36:22 [SEVERE] Could not pass event BLOCK_BREAK to BlackLung
    java.lang.IllegalArgumentException: n must be positive
    at java.util.Random.nextInt(Unknown Source)
    at us.william.blacklung.BLBlockListener.onBlockBreak(BLBlockListener.java:29)
    at org.bukkit.plugin.java.JavaPluginLoader$37.execute(JavaPluginLoader.java:497)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at net.minecraft.server.ItemInWorldManager.c(ItemInWorldManager.java:157)
    at net.minecraft.server.ItemInWorldManager.a(ItemInWorldManager.java:121)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:461)
    at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:452)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:362)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  6. Offline

    chernobyl360

    ok ill look at it tomorrow.
    yes im aware theres an issue with the boom radius im not sure why this is happening. ill ask some of the other devs
     
  7. Offline

    flozza83

    I bypass the problem with logblock by ignoring coal ore logging.
    But looks like the explosions are not random :/
     
  8. Offline

    chernobyl360

    yes i know for some reason configurations wont work. im having the same issue in my other plugin. -_-

    v3.5 uploaded. currently i hard set the random event to every 150th time the coal is broken by each person it will set off. i dont want it to be way too often becuase it will create a lag storm...
    so for me every 150th time it will blow up
    for you every 150th time

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  9. Offline

    chernobyl360

    Updated to CB1060! enjoy!
     
  10. Offline

    Nytemare3701

    still explodes every time for me.
     
  11. Offline

    chernobyl360

    did you remove the old config and reload like it says in the op? this is your issue because i hard coded the random time into the plugin. every 150 breaks will cause a explosion.
     
  12. Offline

    JMaasing

    I used the download link. When starting the server the log says [INFO] BlackLung version 3.0 loaded however the post says the version is 3.5. It also seems every coal block explodes which is kind of not what I expected (no old config, fresh install). Great idea tho, I started thinking about getting radiation sickness from mining redstone unless you wear iron plate armor :)

    - update -

    I built the plugin from source and it works as expected so it might be some problem with the download link in the original post?
     
  13. Offline

    predawnia

    Will this work correctly for CB1547 and above? I can't seem to set the random explosion. Any number I put in the coal will explode, and zero will set it to turn off explosion. Any help is appreciated. I really love this plugin.
     
  14. @predawnia I've forked this plugin and updated it myself, still needs testing though. I'll be releasing it within this week. :)
     
  15. Offline

    predawnia

    Cool! How is the plugin coming along :)
     

Share This Page