SHOW:
|
|
- or go back to the newest paste.
| 1 | Now the final one, Speed in Water: | |
| 2 | ||
| 3 | As stated, the current trait provided is glitchy, but there is some stuff we can still do. | |
| 4 | ||
| 5 | First of all, lets review what "Depth Strider" does: | |
| 6 | For every level of the enchantment, it reduces how much water slows you by 1/3. | |
| 7 | ||
| 8 | So, at level 3 you will be as fast in water as you are on land. | |
| 9 | ||
| 10 | 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 ) | |
| 11 | ||
| 12 | Now.. we need a way for players to get the "Depth Strider" enchantment on their Armor. | |
| 13 | So, please carefully follow this series of steps: | |
| 14 | ||
| 15 | 1) Go to http://dev.bukkit.org/bukkit-plugins/magicspells/ and download the latest version. | |
| 16 | This plugin will allow for many many more abilities, and is already integrated nicely with RacesAndClasses. | |
| 17 | ||
| 18 | 2) Put the .jar in your plugins folder and run your server, so that the files can generate. | |
| 19 | ||
| 20 | 3) Browse your way to the new "MagicSpells" folder and open the file called "spells-regular" | |
| 21 | Here are the default Spells added by this plugin, and here is where you are going to make new ones. | |
| 22 | ||
| 23 | 4) Scroll all the way down in the file till you have empty space. Then, there, paste the following code: | |
| 24 | ||
| 25 | WaterArmor: | |
| 26 | spell-class: ".buff.ArmorSpell" | |
| 27 | name: WaterArmor | |
| 28 | duration: 30 | |
| 29 | num-uses: 15 | |
| 30 | helmet: gold_helmet depth_strider:3 | |
| 31 | str-has-armor: You cannot use this Ability while you have a Helmet on! | |
| 32 | ||
| 33 | 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. | |
| 34 | Duration: is how long in seconds the Helmet Last. | |
| 35 | num-uses: is how many times the player can be hit before the armor is broken: | |
| 36 | helmet: gold_helmet depth_strider:3 is telling the plugin what Armor to give the Player. | |
| 37 | ||
| 38 | 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? | |
| 39 | ||
| 40 | This is thankfully very easy, you are going to add the following trait to your Race / Class: | |
| 41 | ||
| 42 | MagicSpellsSpellTrait: | |
| 43 | # The name of the Magic Spell we want to use, in our case it is WaterArmor | |
| 44 | name: WaterArmor | |
| 45 | # A cooldown in seconds to prevent players from spamming the ability. | |
| 46 | cooldown: 60 | |
| 47 | # How much mana it cost | |
| 48 | cost: 30 | |
| 49 | ||
| 50 | If you want the Depth Strider to go even faster, add the following trait: | |
| 51 | ||
| 52 | MovementSpeedTrait: | |
| 53 | # The value must be between 0 and 1 | |
| 54 | # .2 is the default Speed | |
| 55 | # .4 would be double the default Speed | |
| 56 | # 1 is x5 the default Speed | |
| 57 | value: 1 | |
| 58 | onlyInWater: true | |
| 59 | ||
| 60 | 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. | |
| 61 | ||
| 62 | - | If anything doesn't work, or you get stuck, send me a P |
| 62 | + | If anything doesn't work, or you get stuck, send me a PM via Bukkit. |