Explosion parameters
Zarius opened this issue · 8 comments
Suggested via: http://dev.bukkit.org/server-mods/otherdrops/tickets/123-explosion-features/
Configurable parameters for the EXPLOSION effect, such as blast power and togglable entity and blockdamage.
Blast power is already configurable, just not written into the docs, I'll fix that.
Also, I found there is actually an API for non blockdamage explosions.
My tested discovered the following:
# 0 = sound, effect, no player or block damage
# 0.5 = sometimes hurts player, destroys 1 block
# 0.75 = ~2.5 hearts damage, destroys about 4 blocks
# 2 = ~6-8 hearts damage, about 40 blocks
# 4 = default setting for "EXPLOSION".
# 100 = blows away half a mountain
# 1000 = server times out, devastates ~100 block radius, when joinable server lags due to massive number of dropped blocks
GRASS:
- action: HIT
event: EXPLOSION@2 # explosion strength of 2
# or
- action: HIT
event: EXPLOSION@2/FIRE/NOBREAK
Where "FIRE" will set random fires within explosion radius & "NOBREAK" does what it says, player damage but no block damage.
See dev build 41 on the CI server: http://dev.bukkit.org/server-mods/otherdrops/#w-color-276304-dev-builds-color
installed build 43. used this code, which had worked previously for exploding arrows
action: HIT
tool: PROJECTILE_ARROW
event: EXPLOSION@1/NOBREAK
i'll fire like two shots, and suddenly client stops responding. can't fire arrows, can't interact with blocks, eventually i get booted with "connection lost" -- but there's no console errors at all. I've seen this behavior with some other bleeding-edge features in otherdrops...
@somaticstudios Odd - I just tested that and it worked fine. Perhaps a Bukkit issue? I tried using CraftBukkit 1.5 build 2650 & 2716 with no problems.
Can you try it with one of those CraftBukkit builds? If the problem's still there please open a new issue and post your config too.
OtherDrops: version: 2.8b.431 built: 2013/03/30 10:36
CraftBukkit: This server is running CraftBukkit version git-Bukkit-1.4.7-R1.0-79-gb8f8ec0-b2721jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.1-SNAPSHOT)
otherdrops:
any:
- action: HIT
tool: PROJECTILE_ARROW
event: EXPLOSION@1/NOBREAK
it's seemed that everything is ok. thank you for the new feature ! my "explosionarrower" can work now~ 0ω0