BroomSticks
BroomSticks
Have you ever wanted to fly like Harry Potter? Have you ever want to soar at incredible speeds with on the Firebolt, the fastest broomstick in production? Or, have you ever just wanted a convenient mode of transportation that does require rails or water? Well this plugin adds Broomsticks to the game. Have as many different broomstick models as you want. Give them any name you want. Customize their speeds and even pick what items can be broomsticks.
Riding and Making Brooms:
Riding a broom requires the broomsticks.ride permission node. By default only ops can ride brooms.
- First you have to craft an acceptable broom item as specified in config.yml (default is a shovel)
- Enchant the item with Infinity 1 using an anvil.
- Equip the broom in your hot bar.
- Right click to mount the broom.
- While mounted you will glide at half speed.
- Hold space bar to increase the blue bar on the screen and then let go. The more you fill the blue bar the faster you will go.
Stay out of trouble, brooms will now burn up after touching lava or being lit on fire.- Sneak to dismount the broom. Make sure you are on the ground first or you will fall. Dismounting a broom also conserves momentum so flying fast means you'll land a little further than you might expect.
Here is a video showing the flight mechanics:
Commands:
- /broom [player] "broom name" (without quotes)- Spawns the broom of the specified name in the inventory of the specified player or the person running the command if no player was specified. Requires the broomsticks.spawn permission.
Config
Default Config:
#quidditch-pitch-radius: 75 this is not a feature yet Brooms: #dont use spaces when naming the brooms. Use underscore instead. #Ex. name: Name_with_spaces #use a $ to declare a color or formatting code #Ex. $9 = blue text #for more color and formatting codes go to http://minecraft.gamepedia.com/Color_codes #don't touch the durability it is not a feature yet broom1: name: $9Cleansweep_One speed: 0.5 durability: 100 item: WOODEN_SHOVEL broom2: name: $9Comet_140 speed: 0.8 durability: 100 item: STONE_SHOVEL broom3: name: $9Nimbus_2000 speed: 1.0 durability: 100 item: IRON_SHOVEL broom4: name: $9Nimbus_2001 speed: 1.1 durability: 100 item: GOLDEN_SHOVEL broom5: name: $9Firebolt speed: 1.5 durability: 100 item: DIAMOND_SHOVEL
- durability isn't a functioning feature yet. It sets the damage needed to break a broom.
- feel free to edit any brooms or add your own.
- Don't put speeds that are too high or low. (the fastest default broom as is goes pretty fast)
- make sure to use the correct item name for the items you want to be brooms.
- don't use a ton of special characters for the broom model name because not all of them might work.
- avoid using strange items such as bows, potions, or food as brooms because they have separate right click functions.
Known Issues:
- when enchanting the broom item it appears to be duplicated but the second broom item disappears when clicked upon.
- using a command or plugin to kill all mobs in an area will also knock people off their brooms because the brooms are actually invisible horses.
it could take multiple tries to mount a broom.
Source
You can find my source code on Git Hub
Donations
Donations are obviously optional but highly appreciated. Just press the button if you really like the plugin and want to donate.
please add permission for use brooms
@Stevey268
Looking forward to that update ;)
@Melonking
This will be fixed the next time I update. You could revert to 1.6.2 in the mean time.
2013-10-06 16:53:43 [INFO] This server is running CraftBukkit version git-Spigot-1125 (MC: 1.6.4) (Implementing API version 1.6.4-R0.1-SNAPSHOT)
2013-10-06 16:53:44 [SEVERE] Could not load 'plugins/BroomSticks.jar' in folder 'plugins' org.bukkit.plugin.InvalidDescriptionException: commands are of wrong type at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:849) at org.bukkit.plugin.PluginDescriptionFile.<init>(PluginDescriptionFile.java:188) at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:252) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:132) at org.bukkit.craftbukkit.v1_6_R3.CraftServer.loadPlugins(CraftServer.java:243) at net.minecraft.server.v1_6_R3.DedicatedServer.init(DedicatedServer.java:118) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.Map at org.bukkit.plugin.PluginDescriptionFile.loadMap(PluginDescriptionFile.java:831) ... 7 more
@KubaBVB09
Are their any errors in the server log? Also which version of bukkit are you using and what other plugins do you have on, because I have not heard about this problem before.
Is there a plugin that this is known to conflict with?
I installed it, properly I would assume (I checked it), and when I attempt to right click while holding a broom it just reset my vision in a very glitchy fashion.
Anyone have any ideas?
@JPCanaverde
I will probably change the mechanics of flight for the next update so the controls for flight will be different as well.
The "soar at full speed" functionality is broken with 1.6. Pressing the sneak key dismounts the invisible squid. I've looked through the source code, and found this:
@Override public void run() { if (player.isSneaking()) { Broom.fly(player, broom, speed); } else { Broom.glide(player, broom, speed); }
Should be an easy fix, right? Just don't know what to replace "isSneaking" with.
Any tips? Thanks.
Edit: Okay, I replaced "isSneaking" with "isSprinting". I double tapped "W" while flying, but nothing happened. Not sure how to fix this.
@Stevey268
i have a mac so how do i completely uninstall all java?
@demigod239
ultimate_n00b is right. Also you might have both Java 6 and 7 installed and your computer is choosing to use 6. If you go to control panel > Java, then the java tab and click view you should be able to see which java version you are using and switch it. Also you could try uninstalling all Java you have and then re-install version 7. That should guarantee that you are using the right version.
@PaulBGD
i have java 7.
@demigod239
Update to java 7.
when i use this plugin it gives me this when i start it: 20:44:45 [SEVERE] Could not load 'plugins/BroomSticks.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com/DanMan/main/BroomSticks : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: com/DanMan/main/BroomSticks : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) Help?
@iiHeroo
Thank you very much! It is nice to know that someone appreciates my work. I will definitely continue to work on this plugin and improve it.
I donated $10, I love the plugin :D
Could you update to 1.5.2 please?
@Corrado117
I'll include it in the next update.
Can you also make a command to just give someone a broom?
@Stevey268
During flight, it just reappears sometimes for a few seconds
@Corrado117
When does the squid blink on and off?