Piston Head "Shields"; Used to block attacks.

Discussion in 'Archived: Plugin Requests' started by criticalminer, Mar 12, 2013.

  1. Offline


    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.

    -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?
  2. Offline


    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.
  3. Offline


    You can add crafting recipes.
  4. Offline


    You can make custom crafting recipes.
  5. Offline



    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.
    Last edited by a moderator: May 31, 2016
  6. Offline


    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.
  7. Offline


    Thanks. Yes it is possible, it is item ID 34. You can try /give to test it in creative mode.
  8. Offline


    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!:p
  9. Offline


    Last edited by a moderator: May 31, 2016
  10. Offline


    can be really cool if you can add instead the potion effect, the villager particles, and some sounds
  11. Offline


    Added sound effects as well as villager particles
  12. Offline


    Thanks to this post, someone made this a plugin: RealisticSheilds. (I can't post links, I'm on my phone.)

Share This Page