BetterCombat
Combat in minecraft has always been little more then -who can click the fastest- so I'm bringing an end to click spamming with BetterCombat. With this plugin your sword or fists have to "recharge" after every hit. Also hits that aren't fully charged will not damage a player that is blocking at all. These tweaks to combat seem very simple but they have a huge effect to the gameplay. Click spamming is no longer the best way to win a fight and blocking finally has a use.
Features
- Configurable time for weapons to charge
- When not fully charged the amount of damage is equal to the percentage charged
- When not fully charged attacks can be blocked
- Works for all non-ranged weapons (including fists)
- More powerful attacks to compensate slower hitting
Config
Charge time: 20 # time it takes for your weapon to fully charge, 1 = 1/10th of a second so default is 2 seconds Damage modifier: 1.8 # 1.0 = default damage Recharge effect: STEP_SOUND.8 # Plays effect STEP_SOUND with data value 8. Full list of effects on http://jd.bukkit.org/apidocs/org/bukkit/Effect.html Play effect for everyone: false Only affect players: false Healthbar display: false # Healthbar display is best used with a plugin like http://dev.bukkit.org/server-mods/classichunger/
Commands
None
Permissions
none
Changelog
v0.5: - Option to show the weapon charge in the health bar (renders food useless unless combined with an instant-heath plugin !)
v0.4: - Option to only affect damaging players
v0.3: - Customisable recharge effect
- Option to have the recharge effect visible for everyone
v0.2: - added damage modifier
v0.1: - first release
@TerraVale
Ok, I'll add that.
@Armarr
I'm wondering if there'd be any way to have this only work on players, not mobs.
Add an 'if', telling the plugin to not start the timer if the damaged entity is not a player.. if possible :)
I have no idea how you wrote the plugin, so therefor I can not conclude whether or not this is possible!
@Armarr
Awesome but I love the plugin though :D
@ace1177
Make the damage modifier higher, right now it's set to 2.2 on my server. I'll make the default higher if I update the plugin.
I like the idea of this plugin. Have you run into any issues with the no damage vs people in diamond armor seems like they would regenerate fast enough between hits to not die.
@joehot200
O.o It's not supposed to use a lot of RAM. How did you test this?
@TerraVale
good ideas, lol ;)
i am actuelly finding the plugin consumes about 100MB of RAM, and so i am not going to use it for a while :(
@alienfetus
This feature seems a bit much, but the tool breaking sound and the whole blocking thing got me thinking.
There should be some sort of an advantage for sword wielders versus bow wielders. This is my brainstorming:
If you have a sword and are shot at by an arrow, (I think this is fair because arrows do not take into account what armour you're wearing for dealing damage.. I think..), if you block within 1 second of the arrow hitting you, the damage will be partially negated. Probably best to just cut it in half, for the sake of critical arrow hits. When this happens and you successfully block an arrow, the tool breaking effect should occur. It'd even have pieces of tools sent flying, like the event (if possible!).
This plugin is great it made my server so much better. I think it would be great to have a block mechanic.
Ex. You can block all damage from right clicking, but it will take increased durability like 10% or something.
When you block it makes the sound when a tool breaks to lets you know your blocking.
Thanks for your hard work on this fantastic plugin.
@TerraVale
Good, less work for me ;)
@Armarr
You were right! Your plugin seems to work just fine in 1.3.1's RB :)
This is neat. :D
@joehot200
The 1.3 instant recharge thingis probably a bug in bukkit itself, I'm not gonna change any of my plugins till there is a recommended build.
Like joehot200 here said, take as long as you like! I just know that provided enough upgrades to the crappy default combat system, your plugin could get pretty popular taking into consideration how your small melee-based tweak makes minecraft a ton more fair when it comes to pvp :D
@Armarr
take your time :)
@TerraVale
there is already a plugin that makes it so npc's come when peoplwe log off. maybe, you should have it so if a players loggs off or teleports, it would make an npc of them for 15 seconds, where they could be killed. maybe, with the teleportation one, you could make it so the npc is spawned on teleport, and anyone hitting the npc will then give damage to the player (even though he is far away, cos his tp npc is there) just adding some suggestions :)
as a sidenote, could you please update to 3.1? the recharge is instant for some reason, so swords have X3 damage all the time!
still a great plugim, but i agree that it can develop into something awsome.
@TerraVale
I'd just have to find the time to implement all these features :P
@Armarr
Actually, out of all the possible features, the one feature that really makes me rage is when two people start killing eachother, then one person logs off. Because your plugin is devoted to making combat better, maybe you should have it keep an NPC of the player online for <X> amount of time if they've engaged in combat with a hostile entity or another player! And add a configurable custom death message for players to read when that NPC gets killed? That's another extremely important feature I feel should go alongside the [way] better sword combat you've introduced via BetterCombat :)
If it's possible, you could have some really flashy effects! Loading an arrow into your bow would be simple. Instead of telling people they've loaded an arrow into their bow, when people try to fire their bow without one loaded it would tell them this, because once the person learned that's what you had to do, the chance of that message showing up is now completely nullified and is more of a check for them to see if an arrow is loaded or not.
On a headshot or crippling shot, you could use a block break effect on the player that got hit! To be more precise, a good ol' redwool block break!
@TerraVale
Those sound like great ideas. The one thing I want to prevent with this plugin is spamming the chat, so the hard part would be to implement these features with a minimum of chat messages.
This is an amazing plugin. Since your plugin's name is "better combat" you should definitely proceed into an ever-growing operation of making combat MUCH better. Being the next best thing, ranged combat should be next! :)
Headshots with arrows would be amazing, crippling shots would be amazing too! (Full charged arrow shot to the foot could cripple your character, slowing movement speed for X amount of time). And to prevent arrow spamming, there could even be an option to load an arrow into your bow by tapping shift or your crouch button quickly! So many possibilities.