Half a Heart
Small little plugin that limits the hearts for ALL players to 0.5 hearts! It is just a little fun plugin, I wanted to try if I can program a plugin on an evening without having something like that ever done before! I know, It's not complex or something like that, it's about 130 lines of source code...
If you want to have the real challenge, play on hardcore! And also don't Branch- or Stripmine. Your goal should be to kill the enderdragon - if that is even possible...
Usage
It is really simple: type /hah on - and you all are only short before dieing! And do /hah off to deactivate if you want to survive the night. The plugin generates a config file where it saves whether it is activated or not. If you changed the config file, do /hah reload to reload.
Config
It will look something like this:
activated: false
hearts: 1
heartsDefault: 20
Here is an explanation for all configs:
activated: if 'true' Half a heart mode is activated, if 'false' not
hearts: The hearts you have if Half a Heart mode is activated
heartsDefault: The hearts you have if Half a Heart mode is not activated
Permissions
It's so simple:
- hah.use: For being able to do /hah on or off
- hah.affect: for all people you want to be affected by the Half a Heart mode, it is given by default. Remove for all people, who should not be affected by the plugin.
Tips and Tricks
You have tried it a few times, but you always haven't survived longer than 30 minutes? Here are some tips for surviving:
- Get a bed. The most precious thing for you is a bed. You can sleep over the night, which is you worst enemy.
- Avoid mobs, at most skeletons and creepers. If you see a skeleton or a creeper, you are almost dead. Skeletons can snipe you from far away and creepers have an incredible radius. Zombies are ok, because you can hit them so they can't hit you.
- Get food before doing anything else. Kill some pigs, cows and chickens - you have a much better chance to survive then.
- If you are in a cave, always look careful around the corner and place torches everywhere. Nothing is worse than a zombie spawning behind you and killing you. If you see a skeleton or a creeper, RUN!
Sourcecode
There is a GitHub repository with this plugin! Have fun browsing sourcecode and learning from it! Click me