Hey, it would be cool if anyone can write this plugin: If you are more than 5 minutes in the rain, you'll be ill, and have to stay at home, while it's raining. If it's raining and you don't want to be ill, you have to sit around a fire in your house. But when you are ill, you have to eat mushroom soup and stay in you bed. After 1 day you are fit again. Thanks, Darth Cleanueis PS: Sorry for my bad english! bump EDIT by Moderator: merged posts, please use the edit button instead of double posting.
The symptoms.... hm... you move more slowly and configurable blocks you cannot place because they are to heavy. In the chat there should be a customizable message in front of your name and when you get ill, there should be a customizable message, too. Can no one write a plugin like this? EDIT by Moderator: merged posts, please use the edit button instead of double posting.
This plugin seems a little vague in your description i like the idea but it needs more detail. So far i see. If you spend around 5minutes in the rain you become ill (name changeaswell) You need to sleep in your bed to get better i don't think you could add the and soup eat thing. if you are i'll you move as if you are crouching and you look as though you are crouching.
@Adondriel Hm... I didn't understand this: Maybe you can describe what you mean. The soup-idea, I think you're right. Maybe anyone has a good other idea. Because only stay in bed is boring, I think.
As in, if you are ill you will be crouching forcefully. and i agree you should have to eat a lot of soup to get rid of your illness. maybe sleep in bed for 1 day though... or be next to your bed for 1 day if that's possible...
I was thinking of this but I just didn't put it in the suggestions forum, since sounds like a big project. In addition to mushroom soup healing people, there should be more ways to get mushrooms, since they're so rare on smaller worlds. Maybe make rain spawn mushrooms, like 2 different mushrooms every 100 blocks or so. I'm just letting my imagination run away with me, this sounds way too complicated for someone to take on.
On my server, we have iConomy and a Shop-Plugin. It wouldn't be a problem for me, because we can sell mushrooms/the soup.
It *might* be possible. Biggest issues I see right now are: 1. There's no way (that I can think of) to tell if a player is out in the rain, other than to check if all the blocks above him are air. I'm not even 100% sure if there is a way to check if its raining or not (hasStorm() is not in the documentation) 2. There's no way to tell when a player has eaten soup (I don't think). 3. You could force your player to stay at a specific location, but it'd have to be set by them. How else does the server know what your house is? You could be stuck in a cave, being killed by mobs, locked there because your sick and the server says you need to stay in your house 4. Not sure if you can force someone in the crouch position. I know its an option, but they might be able to get out of it. 5. As mentioned, mushrooms are very rare. 6. Can't sleep in beds during the day. I could try it sometime, but not anytime soon, because I have other projects I must finish first.
I agree with what Connor Mahaffey said. And I feel like we should established that in the real world, one does not get ill from spending 5 minutes in the rain. I believe this is one of those "niche" plugins: seems like a great idea, but isn't something anybody really wants.
@Connor Mahaffey First one - check every one second whether player pos is lower than max block height on that coordinates. Second - onPlayerInteract 3 - check bed position 4 - setSneaking() probably doesn't work - correct 5 - yep 6 - yeah, but with little hacking you can do that, I guess.