Who Regeneration
Description
What it is
Let you and your players have the ability to regenerate just like the Time Lords from Doctor Who When someone would die, if they have the permission and they're cool-down is up (if they had previously regenerated) then they would regenerate with full health. When they regenerate, the mod-spawner flame particles surround them then they slowly float up into the air, an explosion occurs and they fall back down with full health. The cool-down then starts for when they can regenerate again.
My Other Doctor Who Plugins
Weeping Angels, TARDIS, Vortex Manipulator, Sonic Screwdriver
commands
- Regen:
- on - turns regeneration on
- off - turn regeneration off
- status - tells you if you have regeneration on or off
- whoregenerate - shows the usage of the regen commands
Permissions
Who.Regenerate - Allows Players to regenerate
Config
- Partical:
- Intensity - The amount of times the mob spawner flame effect is played at every position; 0 for off; can't be a decimal
- Interval - the interval the mod spawner flame effect is played from the bottom to the top; 1 is every block, .5 is every half block, etc...; Can be a decimal
- Height - the height in blocks below and above the player that the mob spawner flame effect will be played; can be a decimal
- Explosion:
- Use - true = use the explosion, false = don't use the explosion
- Ignite Blocks - whether or not to have the chance to ignite surrounding blocks; true or false
- Power - the power of the explosion; 4 is the same as TNT; 0 will not destroy blocks or harm surrounding entities; can be a decimal
- Regeneration Cooldown - the amount of time in minutes it takes to be able to regenerate another time after a player dies; can be a decimal; eg. 1.5 == 1 minute 30 seconds; If you don't wan't a cool-down then just set it to zero.
- Buffs - Potion effects to add after regeneration. To disable take everything out of it but still have the path there or turn the default buffs into something else that doesn't exist or is in the wrong format
- PotionEffectType:Durration:Amplifyer
To Do
- Add the ability for people to regenerate to change to a random skin through Spout, currently waiting on one of my friends to make me a skin of all of the doctor's different regeneration. If anyone has any good ones that they would let me use please post a link to them
- Anyone have any suggestions?
Known Bugs
- If anyone finds any please create a ticket for it
@Jogy34
See, my idea's cool because if you just used a no-damage regenerate-explosion permission, you could make it so that players don't take damage and so that mobs do.
And another thing, when you raise the power of the explosion to .01, it shows no explosion particles at all.
@KlingL
Hmm. That's weird. They must have changed the explosion mechanics.
@Jogy34
Yeah, when I do that the explosion particles only go out about an eighth of a block.
@KlingL
That's weird. It should still make an explosion. Try like .0001 then.
@Jogy34
When I set the explosion to zero, I see no explosion particles though.
@KlingL
You can set the explosion power to 0 and there will still be an explosion of normal size it just won't hurt players and won't destroy blocks.
I have another idea. Can you make it so that one can choose whether or not the explosion destroys blocks, but if it doesn't it can still have a radius meaning the explosion particles still show? And could you make it so that there is the option whether or not you want the explosion to harm other players? Maybe you could have a permission, and the players with the permission wouldn't get hurt by the explosions from other peoples regenerations, and the players who didn't have it would.
@Jogy34
That's too bad. I thought the thing would be just something you could override, with some difficulty of course, but still. Anyways, if I ever learn Java, I'll try to develop a way of getting around it, though I'll only create a modified client if there's nothing easier that I can do.
@KlingL
If the health is set to zero then the client automatically displays the respawn screen and I think it would be a wast to create a modified client just to get around that.
@Jogy34
If you allow their health to drop to zero there's really no way to stop the respawn screen from showing up (not even a way of fooling the server into thinking that the player logged in and then out)?
@KlingL
I can't make their health drop to 0 or else the respawn screen will show up and they would have to log out and log back on to get rid of it without actually respawning.
It might be possible to be able to retrieve a player's skin from the player but if it isn't then I would have to go about downloading the player's skin from a website and that could get messy. If I could manage to get the skin then I could edit it with pre-made overlays using some java image manipulation to get the desired effect that way.
As for actually manipulating the player's individual body parts I don't know if that is possible even with Spout but I haven't worked with Spout in quite some time so I'm not 100% sure. When I do eventually get to this working with spout I'll look into it.
@Jogy34
Can you make it so that their health actually drops down to zero (while their regenerating) without them dying? And regardless you should keep trying to do those things. Is there not a way in spout to make a skin — several skins in you case, for the fading effect — that only affect certain parts of the body, like head and hands?
Sorry, I'm a real perfectionist.
@KlingL
I'm not even sure if that is possible even with Spout but I'll add the restore hunger thing.
I don't know if this is exactly a bug (more of a problem/suggestion I think) there's no option in the config to make the regeneration restore hunger.
You should make it so that the persons health actually goes down to 0 zero as they're regenerating and so that they fly up one block or just half a block and tip back just slightly while their arms raise. Then surround them with the fire animation as you make their head and hands turn a bright golden yellow while giving off a light level of 15 (with an animation like this you could just set the default value of the fire animation intensity to 0). Finally, when the animation is finished make their head and hands quickly dim to the texture of their normal head and hands (or that of the random skin that you mentioned) as they quickly sink to the ground.
if you still havent worked out how to get permission i recomend the Plugin" YAPP"
@hackharvester
Which would be giving yourself the permission through a permissions plugin. And not all permissions plugins support that.
@Jogy34
or just set ops as having '*'
@lubglubs
That would be because you have to give yourself the permission through a permissions plugin.
Some reason it won't give me permission to regenerate.