ObsidianBreaker
Obsidian Breaker
What is this?
This is a plugin that allows players to destroy obsidian, ender chests, enchanting tables or custom blocks with TNT and creepers among other things after a set amount of explosions. Really useful for faction servers.
It will also display cracks on the block depending on the remaining health of the block (optional).
How to use it?
You're ready to roll, just drop this in your plugin folder. You may however consider changing the default configuration.
How to configure it then?
Permissions
obsidianbreaker.test | Allow user to test the durability of a block using the specified tool |
obsidianbreaker.reload | Allow user to reload the config using /ob reload |
Configuration
BlastRadius | How large the blast radius should be. (Only applies to this plugin) | |
LiquidMultiplier | How many times harder it should be to damage the block if there's water there. | |
DurabilityChecker | Specify which item should be used to check the damage on the block. Stick (280) is default. | |
VoidProtector | Makes sure that blocks on y=0 don't explode, leaving holes into the void. | |
BedrockBlocking | Defines if blocks handled by this plugin shouldn't take damage if they're behind bedrock. | |
DisabledWorlds | List worlds that aren't affected by this plugin. | |
Drops | DropChance: How big chance (in percent) is there that a broken block will give drops. Default in Minecraft was 30 %. DontDrop: List of blocks that shouldn't be dropped by the plugin (such as bedrock) | |
Blocks | Specify which items this plugin applies to and the required amount of hits (item id): (required hits) | |
Regen | Frequency: How often blocks should regenerate in minutes. Set to -1 if you want to disable. Amount: How many hits the block should regenerate | |
BlockCracks | Enable: Set whether block cracks are enabled or not. Interval: How often the server should refresh the client (no more than 15 seconds is recommended!) | |
ExplosionSources | Specify how much damage a specific explosion source should make to blocks handled by this plugin (entity name): (damage) |
Anything else
If there's anything wrong, anything missing or another thing that didn't make you satisfied, please consider opening a ticket or leave a comment here below.
GitHub
Donate
I think i may have a new bug. I have this plugin on my factions server, when a faction is being raided however there with be cracked blocks in place. When a player /f home's to get back to there base there is nothing there for them and the only way i have been able to fix it is to load the chuck form the outside and walk in.
Does anyone else know anything about this glitch or experience the same?
Let me know
Skype:PowerHustler
Server:FactionHustlers.US
@Rulerish
It works just fine for me. Can you give me some more information, like what projectile you're using, which type of cannon you're using and what other plugins may play a role?
@oggehej
Firing projectiles right towards the obsidian with Cannons doesn't seem to lower the durability of the Obby :/
@mikgreg You're using an outdated version of this plugin, those issues have already been resolved in later versions.
@T_X_T I haven't used cannons personally, so there were no support for cannons. However, I have added basic support in version 2.1 which should be released in some hour.
Getting this error spamming in my console; http://i.imgur.com/PtscNFg.png
@T_X_T
@T_X_T
I believe i may have solved the issue by re closing and re opening the server , not just you average restart., bbut im not 100 % sure that the whole issue is resolved,
@oggehej
this plugin was great until it made Cannons ( http://dev.bukkit.org/bukkit-plugins/cannons/) OBSOLETE :( now only the tnt from cannons work, the regular cannon cant even break glass :'( , and the turrets from movecraft no longer cause damage either, and even after uninstall of this plugin the was no avail. and i dont know how to revert this.
I like how you upload your plugin to Bukkit, and don't charge anyone, unlike drtshock. Your plugin has more and better features than his plugin, and yet he charges people...
@PowerHustlers
It seems like Bukkit itself was the reason to the error (Link) when it was calculating block paths for the liquid detection. However, I've just submitted version v2.0.4 for approval, which in case of errors will fall back to the primitive liquid detection system in versions lower than v2.0.
Thank You for your update, it seems to have changed the error a bit and I got this. I really love the format of this plugin and would like to keep using it.
Could not pass event EntityExplodeEvent to ObsidianBreaker v2.0.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.Explosion.a(Explosion.java:183) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.World.createExplosion(World.java:1867) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.WorldServer.createExplosion(WorldServer.java:1020) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.EntityTNTPrimed.explode(EntityTNTPrimed.java:84) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.EntityTNTPrimed.t_(EntityTNTPrimed.java:63) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.World.entityJoinedWorld(World.java:1607) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.World.g(World.java:1582) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.World.tickEntities(World.java:1425) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.WorldServer.tickEntities(WorldServer.java:597) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:789) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] Caused by: java.lang.NullPointerException at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:138) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] at com.creeperevents.oggehej.obsidianbreaker.BlockListener.explodeBlock(BlockListener.java:66) [?:?] at com.creeperevents.oggehej.obsidianbreaker.BlockListener.onEntityExplode(BlockListener.java:43) [?:?] at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497) [?:1.8.0_45] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot_1.8.jar:git-Spigot-f928e7a-994b2aa] ... 17 more
Thanks for taking a look
@Exigopro @PowerHustlers
I have not experienced the error myself, but I think however that I've fixed it. I've just released ObsidianBreaker v1.0.3 which contains a fix for this. As I'm writing this post it's awaiting approval from the Bukkit team, so it may take a few hours before you can download it.
I keep getting errors like this:
[15:02:47 WARN]: Exception in thread "Craft Scheduler Thread - 1728" [15:02:47 WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 278823 at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.IllegalStateException: Asynchronous entity world add! at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14) at net.minecraft.server.v1_8_R3.World.b(World.java:2640) at net.minecraft.server.v1_8_R3.Chunk.addEntities(Chunk.java:820) at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:49) at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOProvider.callStage2(ChunkIOProvider.java:1) at org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor.skipQueue(AsynchronousExecutor.java:337) at org.bukkit.craftbukkit.v1_8_R3.util.AsynchronousExecutor.getSkipQueue(AsynchronousExecutor.java:295) at org.bukkit.craftbukkit.v1_8_R3.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:16) at net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:115) at net.minecraft.server.v1_8_R3.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:97) at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getChunkAt(CraftWorld.java:125) at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getBlockAt(CraftWorld.java:89) at org.bukkit.craftbukkit.v1_8_R3.CraftWorld.getBlockAt(CraftWorld.java:567) at org.bukkit.Location.getBlock(Location.java:87) at com.creeperevents.oggehej.obsidianbreaker.ObsidianBreaker$CrackRunnable.run(ObsidianBreaker.java:185) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftTask.run(CraftTask.java:71) at org.bukkit.craftbukkit.v1_8_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) ... 3 more
This is a great plugin I use it on my server. But I constantly get and error message
WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 24345
WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 40
/WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 21539
WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 21066
WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 19353
But, most (90%) are task 40 as such:
WARN]: org.apache.commons.lang.UnhandledException: Plugin ObsidianBreaker v2.0.1 generated an exception while executing task 40
If, anyone has any insight, please let me know.
@Destroyer5405
Just ignore anything that isn't highlighted.
Remember that you'll probably see some holes in the world (to the void, made by players), and that if you have a drop chance set to anything but 0 players will get the bedrock.
Could you please show me a screenshot of what config for bedrock breaking under 10 hit would look like
@dragonz102
It seems like the feature to disable the feature (much logic) is broken. I will include a fix for this in the next version. Until then, my bet would be to set the LiquidMultiplier to 1000000000 or something similar.
Edit: Fixed in v2.0
it would be cool if you could disable obsidian damage if the tnt is in water blocks (solid/flowing)
(If you can already please tell me how??)
It resets itself when a mistake is made in the config....
@wilbree2
I cannot reproduce the problem, so it's a little tricky for me. I would guess it has something to do with Multicraft, as the config is only supposed to be totally reset if the file doesn't exist or, more rarely, is corrupt.
Version: Spigot 1.8 Host: McProHosting Happens on reload...