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.
While I'm adding this to my server, I think this could use a little improvement. The squid blinks on and off, the flight is a little glitchy, and the plugin as a whole feels unstable. Also, there should be a command for just giving someone a broom.
That said, I love the plugin, keep up the good work :D
@joehardy8
I have upgraded the plugin to version 2.0! In this version the flight is smoother and the player is actually sitting down (on an invisible squid). The flight occasionally stutters if and when the player is loading chunks, but for an arena with many players this shouldn't be a problem. Although I've tested the plugin a lot, I'm sure I missed a lot of potential bugs so if you find any please let me know me so I can fix them.
Cool. I know that our server might definitely want to use this plugin, but I am not sure if it would be implemented unless it is a bit smoother. I installed it in my test world, and I will be inviting the owner of the server to try it out. Good luck with that, and I hope this becomes more popular!
@joehardy8
It doesn't make you jump rather it pushes you in the direction you are looking and slightly upwards at the same time. Also, It seems that higher speeds give a smoother flight but the problem is getting the low speeds to feel continuous. I could probably mess around with the settings until I find something that works. As for making it look like the player is sitting down is a bit tricky. I can probably figure it out eventually but my past attempts at doing something similar kicked people of the server. I will definitely continue to work on it.
Very cool. I just tested it out, and it is functional.
Might there be a way to make the actual flying a bit smoother? Right now I assume that it works by kind of making you jump very briefly as the right click is held down, yes? Smart idea, smoother would be better, but it is definitely functional. Now also, would it be possible to make it so that it looks like you are sitting when you are flying on a broom? Like when you are riding a pig, and you are sitting. Overall, great idea, definitely could be a great plugin if it is continued and improved.