Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Now the final one, Speed in Water:
- As stated, the current trait provided is glitchy, but there is some stuff we can still do.
- First of all, lets review what "Depth Strider" does:
- For every level of the enchantment, it reduces how much water slows you by 1/3.
- So, at level 3 you will be as fast in water as you are on land.
- However, speed effects will still effect you, this allowing you to increase your speed in water greatly. ( This is further explored later in this post )
- Now.. we need a way for players to get the "Depth Strider" enchantment on their Armor.
- So, please carefully follow this series of steps:
- 1) Go to http://dev.bukkit.org/bukkit-plugins/magicspells/ and download the latest version.
- This plugin will allow for many many more abilities, and is already integrated nicely with RacesAndClasses.
- 2) Put the .jar in your plugins folder and run your server, so that the files can generate.
- 3) Browse your way to the new "MagicSpells" folder and open the file called "spells-regular"
- Here are the default Spells added by this plugin, and here is where you are going to make new ones.
- 4) Scroll all the way down in the file till you have empty space. Then, there, paste the following code:
- WaterArmor:
- spell-class: ".buff.ArmorSpell"
- name: WaterArmor
- duration: 30
- num-uses: 15
- helmet: gold_helmet depth_strider:3
- str-has-armor: You cannot use this Ability while you have a Helmet on!
- This is an all new Spell that we are adding. When you activate it, it will give the player a Helmet with Depth Strider 3.
- Duration: is how long in seconds the Helmet Last.
- num-uses: is how many times the player can be hit before the armor is broken:
- helmet: gold_helmet depth_strider:3 is telling the plugin what Armor to give the Player.
- Now, it's nice and all that we added the new ability here in this Other Plugin, but how do we get it in our RacesAndClasses?
- This is thankfully very easy, you are going to add the following trait to your Race / Class:
- MagicSpellsSpellTrait:
- # The name of the Magic Spell we want to use, in our case it is WaterArmor
- name: WaterArmor
- # A cooldown in seconds to prevent players from spamming the ability.
- cooldown: 60
- # How much mana it cost
- cost: 30
- If you want the Depth Strider to go even faster, add the following trait:
- MovementSpeedTrait:
- # The value must be between 0 and 1
- # .2 is the default Speed
- # .4 would be double the default Speed
- # 1 is x5 the default Speed
- value: 1
- onlyInWater: true
- This will cause the player to go VERY ( or somewhat, depending on how easily amused you are ) fast in water while they have the helmet on from the previous ability.
- If anything doesn't work, or you get stuck, send me a PM via Bukkit.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement