Realistic Shield

Logo created by xDizasterCYx
This plugin allows Players to block with a shield... With sound effects, Activation, Duration and Hunger usage!!
Features
Allows players to craft piston heads which act like shields. Allows players sword blocks to negate damage. Custom Crafting recipes
Configuration
blockDuration: Integer, Seconds the blocking effect will last for
hungerCost: Integer, hungerCost per Block
nameOfItem: String, Name of Item when crafted
Default Durability: Integer, Durability of Item when crafted
Particle Color: Hexadecimal, Color of Particle ex. 0x00FF3C (Light - Green)
sound: boolean, whether or not to play sound on block
Fireworks: boolean, whether or not to play firework effect on block.
damageAfterHunger: boolean, whether or not you can still block if you have no hunger
MultipleTeirs boolean, Whether or not have 3 teirs with redstone having default durability iron having default durability + 10 and diamond + 20
Description of Functions
When a player right clicks with a piston head it consumes a certain amount of hunger defined in the config While the player is blocking all damage inflicted from front is negated and the durability decreases by one. when a player is blocking it will display a potion effect on the player blocking.
Works well with QuickSwap: http://dev.bukkit.org/server-mods/quickswap/
Note: Blocks arrows from ALL directions
Permissions
Shield.Sblock: Allows players to use the same effect but with sword blocking.
Shield.block : Allows Players to block
Shield.craft : Allows a player to craft a shield
Showcase:
Slightly outdated... this was V1.4, would be nice if someone made a new one
→
TODO
- Custom Sounds
- Custom effects
- Block percentages
Source
https://github.com/ooosssososos/Realistic-Shield
Original Request: http://forums.bukkit.org/threads/piston-head-shields-used-to-block-attacks.134362/
-
View User Profile
-
Send Message
Posted Jan 29, 2014Lol....Raw chicken.
-
View User Profile
-
Send Message
Posted Jan 28, 2014@ooosssososos
ha ha oops thanks :)
-
View User Profile
-
Send Message
Posted Jan 28, 2014@Hmmcrunchy
1.5?
The reason I am asking is because v2.5 of the plugin is still under review and you cant download yet I dont think
-
View User Profile
-
Send Message
Posted Jan 28, 2014@ooosssososos
HIya yes 1.5 im on spigot if that helps too
it seems to be any item or any player interact event ie holding nothing and click door or npc
only 1 shield has been crafted as far as i know as no perms for anyone but everyone was getting these errors in the console
-
View User Profile
-
Send Message
Posted Jan 27, 2014@Hmmcrunchy
is this version 2.5?
If it is please post how did this happen? what were you holding etc.
-
View User Profile
-
Send Message
Posted Jan 27, 2014Tis awesome :D but...
[17:05:21 ERROR]: Could not pass event PlayerInteractEvent to Shield v2.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:427) [spigot.jar:git-Spigot-1239] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav a:62) [spigot.jar:git-Spigot-1239] at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredLi stener.java:30) [spigot.jar:git-Spigot-1239] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.j ava:482) [spigot.jar:git-Spigot-1239] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j ava:467) [spigot.jar:git-Spigot-1239] at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInte ractEvent(CraftEventFactory.java:208) [spigot.jar:git-Spigot-1239] at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInte ractEvent(CraftEventFactory.java:178) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java :1011) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.PacketPlayInArmAnimation.a(SourceFile:43 ) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.PacketPlayInArmAnimation.handle(SourceFi le:9) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147 ) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [spig ot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6 78) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 73) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 40) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :446) [spigot.jar:git-Spigot-1239] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [spigot.jar:git-Spigot-1239] Caused by: java.lang.NullPointerException at com.hotmail.ooosssososos.Shield.onClick(Shield.java:177) [?:?] at sun.reflect.GeneratedMethodAccessor381.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1 .7.0_10] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.7.0_10] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.ja va:425) [spigot.jar:git-Spigot-1239] ... 16 more
-
View User Profile
-
Send Message
Posted Jan 27, 2014i gave you a small present for your great plugin.
-
View User Profile
-
Send Message
Posted Jan 26, 2014Someone actually found the bug as well, good on him/her!
-
View User Profile
-
Send Message
Posted Jan 26, 2014@xDizasterCYx
Thank you for the logo!
-
View User Profile
-
Send Message
Posted Jan 26, 2014Update has been release, just need bukkit staff to verify! thanks for your patience everyone!
-
View User Profile
-
Send Message
Posted Jan 26, 2014The bug that caused shields being unable to craft was due to a typo in the default config:
as you can see, the 7th spot is 365, which is raw chicken, which is wrong >.>
-
View User Profile
-
Send Message
Posted Jan 26, 2014Sorry have not been able to be on recently, will get back to work fixing issues ASAP
-
View User Profile
-
Send Message
Posted Jan 25, 2014hey i made a logo for your plugin :D :
http://oi41.tinypic.com/2s7civ4.jpg
-
View User Profile
-
Send Message
Posted Jan 24, 2014Pleas fix the Spigot issue
-
View User Profile
-
Send Message
Posted Jan 13, 2014yes im using spigot and dont seem to be able to craft anything i did try command /shield ad got this
[11:53:37 INFO]: hmmcrunchy issued server command: /shield [11:53:37 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'shie ld' in plugin Shield v2.3 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spi got.jar:git-Spigot-1226] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:19 6) [spigot.jar:git-Spigot-1226] at org.bukkit.craftbukkit.v1_7_R1.CraftServer.dispatchCommand(CraftServe r.java:546) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.PlayerConnection.handleCommand(PlayerCon nection.java:960) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java :815) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.PacketPlayInChat.a(PacketPlayInChat.java :28) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.PacketPlayInChat.handle(PacketPlayInChat .java:65) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:147 ) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [spig ot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:6 57) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:2 73) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:5 40) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java :446) [spigot.jar:git-Spigot-1226] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:6 17) [spigot.jar:git-Spigot-1226] Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.hotmail.ooosssososos.Shield.onCommand(Shield.java:138) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spi got.jar:git-Spigot-1226] ... 13 more
-
View User Profile
-
Send Message
Posted Jan 4, 2014I can't craft the shield...I'm using spigot 1.7.2
-
View User Profile
-
Send Message
Posted Dec 25, 2013Thanks for the update I luv you!
-
View User Profile
-
Send Message
Posted Dec 20, 2013Could try a Halfslab, trapdoor, daylight sensor or door, those were the only ones I could think of that would make any sort of "sense". Hope this helps.
-
View User Profile
-
Send Message
Posted Dec 19, 2013@palipali
I will try to fix it. not sure how much success i will have though
-
View User Profile
-
Send Message
Posted Dec 19, 2013