I'd like players to be able to use shields. The shields would be piston heads (item id 34), and players would left click with them to use them. After clicking, the player would be "blocking" (only from the front) with the shield for 1 second. However the effect would end faster if the player switched the item they were holding to something else. This means that any damage from the front would be reduced, arrows would "bounce" off. Each use of the shield would cost some hunger, while actual blocks would cost durability. The shield's durability would be displayed in its name (I assume it isn't possible to display custom durability for an item like this in the traditional way); the name would change as the durability changes; "Shield (7/25)". I'd like some visual show of when the shield is blocking and when it isn't. Maybe that green particle effect that villagers get when you trade with them. Also after a successful block, there should be a sound. Once the last durability is wasted, the item would disappear. Settings: -crafting recipe for the piston head (default: ??) -name of the piston head (default: Shield) -durability of the shield (default: 25) -damage reduction from successful block, in percent (default: 100) -max damage reduction from successful block (default: 10) -block time in seconds (default: 1) -hunger cost per block attempt (default: .1 hunger bar) Any thoughts? Could anyone do this?
From my knowledge you can't make crafting recipes with Bukkit without client and server mods. I think you can change names (seen it done) I believe durability is possible Damage reduction, probably adding back the percent of the damage you wish to keep Max damage reduction and block time are do-able Not sure about hunger pretty sure hunger decimals can be .5 or .0. I need my first plugin to be simpler. Sorry, BUMP.
Ok Btw, how do you hook up dev.bukkit.org profile to forums profile EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Tommy: not relevant, as elsewhere. To the plugin: presuming you are able to get the front itself as an object, then I think this is entirely possible. Also nice idea, kudos.
When do you need this?(can't remember if it's at the top or not, and cba to scroll - on phone). If its not urgent I will seriously look into this, I haven't made plugins in yonks because I've been running a server, so ill have a go, but I would try to get someone more skilled to make one too!
Working on this right now and will publically release it later Completed : http://dev.bukkit.org/server-mods/shield-plus/ EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Thanks to this post, someone made this a plugin: RealisticSheilds. (I can't post links, I'm on my phone.)