Magic

Magic

190k Downloads

Broom timer

HarrySteve06magic opened this issue ยท 2 comments

commented

Hi Nathan, I would like to ask you two things:
1Is it possible to add a broom uses limit in certain brooms and give the player an effect after some time and make them dismount
2Is it possible to add a 3D model to brooms and create various brooms, that the player can buy, with different speeds and characteristics?

commented

Yes, there are examples of both in the potter and survival configs.

Add uses: 10 to a broom to make it self-destruct after a certain number of uses. See the "Crud" brooms from potter configs.

https://github.com/elBukkit/MagicPlugin/blob/master/Magic/src/main/resources/examples/potter/wands/crudbroom.yml

Broom spell has a duration parameter you can adjust, players will get nauseous prior to being forced to dismount. Look at the broom spell config to see how this works.

Potter configs have different brooms with different parameters. This can be done by making different broom spells that override parameters (probably the best way) or by adding spell overrides directly to the broom wand items (how I did it in the potter configs, maybe a little easier but probably not the cleanest way to do it).

Adding 3D models to the RP is doable but is not something I'm going to lend much help with. You'll need some basic modelling skills, probably a program like Cubik, and you'll have to be familiar with using predicates like the Spigot wiki article I wrote describes.

https://www.spigotmc.org/wiki/custom-item-models-in-1-9-and-up/

commented

Thanks a lot.