| Blockland Forums > Suggestions & Requests |
| Items_Potion |
| (1/3) > >> |
| Cool Boi:
I'm working on a medieval fort and it would be nice to have some more potions other than the red one. They would be: Green- Heals 50 health and adds a 25% speed boost for a couple of seconds. Blue- Heals 25 health. Orange- Heals 45 health. Purple- Poison, takes away 10 health. Pink- Causes a heart emote to appear above the player |
| jes00:
Easy to make. |
| Cool Boi:
--- Quote from: jes00 on July 18, 2012, 05:45:36 PM ---Easy to make. --- End quote --- Think you could do it? If possible in the model of your milk/ red potion addon? |
| Mr.Noßody:
Ive looked into this. Couldn't figure out how to incorporate temporary item effects like upping player speed. If someone can provide the code for that, I have a pack ready to go already. |
| jes00:
--- Quote from: Mr.Noßody on July 18, 2012, 09:51:03 PM ---Ive looked into this. Couldn't figure out how to incorporate temporary item effects like upping player speed. If someone can provide the code for that, I have a pack ready to go already. --- End quote --- --- Code: ---datablock PlayerData(PlayerPotionFasterArmor : PlayerStandardArmor) { maxBackwardSpeed = "5"; maxForwardSpeed = "8"; maxSideSpeed = "7"; maxBackwardCrouchSpeed = "3"; maxForwardCrouchSpeed = "4"; maxSideCrouchSpeed = "3"; maxUnderwaterBackwardSpeed = "8.8"; maxUnderwaterForwardSpeed = "9.4"; maxUnderwaterSideSpeed = "8.8"; maxJumpSpeed = "35"; uiName = ""; }; //When they drink it %oldDatablock = %player.datablock.getName(); %player.setDatablock("PlayerPotionFasterArmor"); %player.schedule(5000, 0, setDatablock, %oldDatablock); --- End code --- |
| Navigation |
| Message Index |
| Next page |