NoStarvation
NoStarvation
NoStarvation is back!
Do you remember the good old days with minecraft 1.7.3?
Where you can eat food directly, not only after few seconds?
Where food restores health and not a hungerbar?
If you want to have those features back try out this plugin!
Description
NoStarvation disables the hunger system!
You can eat food instantly and it will restore health.
Just rightclick with a food in your hand and if you don't have full health you will eat it.
If you eat poisonous food, you will lose health and if you don't have health, you wil die.
You can change the health of the food, even negative values.
Screenshots
Installation
1. Put NoStarvation.jar inside the plugins folder.
3. Restart or reload your server (the players' foodbar will be filled up on next connect).
4. Eat your food instantly. :)
Command
If you want to see a food's health, type in /ns [food]
You can change the health of a food with /ns [food] [health]
The health of a food specifies how many hearts of the healthbar will be filled up.
Two healthpoints correspond to one heart in the healthbar.
See available food and health HERE.
Permissions
nostarvation.hunger
Disables NoStarvation for that player.
nostarvation.command
Allows the player to see/change the health of the food.
ToDo
- Make the max stacksize for food changeable.
- Use the foodbar as a staminabar.
- Add the possibility for a delay between eating food.
ChangeLog
- v3.0.1:
Fixed a bug that when eating an enchanted golden apple, an normal golden apple was removed from the inventory.
Fixed a bug that not the item in the hand was removed, but rather the first item of this type in the inventory.
- v3.0.0:
Added more food:
- Baked Potato (baked_potato)
- Carrot (carrot)
- Enchanted Golden Apple (enchanted_golden_apple)
- Golden Carrot (golden_carrot)
- Poisonous Potato (poisonous_potato)
- Potato (potato)
- Pumpkin Pie (pumpkin_pie)
Added the possibility to add Potion Effects to a food which will infect the player when he eats the food.
Optimized configuration (e.g. better names for the food)
Fixed permissionnostarvation.hunger
for OPs.
Disabled NoStarvation in creative mode.
- Baked Potato (baked_potato)
For more see the ChangeLog page.
@ruaraidheu
Great idea :O EDIT: Done! :D
Could you make it so when you eat a spider eyes or rotten flesh it will give you a slowness or weakness potion effect
@Juelz0312
That's because you are op. You have all the permissions, even the permission to enable hunger and health regain, '
nostarvation.hunger
'. To remove the permission simply give yourself 'nostarvation.hunger: false
' and that should solve the problem.I've installed the plugin correctly, however for some reason my health still regens on its own, and trying to eat food doesn't work.
@sd5
Thanks for the update!
@sd5
Thanks for the update! :)
@darth2499
I will fix this plugin in one or two weeks, but in the moment I have much work for school. Thanks for your suggestion with the stamina, I'll try to add that too :)
Probably the best plugin out there to disable hunger but doesnt seem to work at all unless your an op. Also for future plans please add stamina (since players can run forever using this, would be nice to be able to limit that)
[SEVERE] Could not pass event PlayerInteractEvent to NoStarvation org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:287) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636) at net.minecraft.server.Packet15Place.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at me.sd5.nostarvation.NSPlayerListener.onPlayerInteract(NSPlayerListener.java:30) at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 12 more
There is no option to change default healing values?
and when i use Gold apple, there is normal eating animation
btw
[SEVERE] Could not pass event PlayerInteractEvent to NoStarvation org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:177) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:287) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:636) at net.minecraft.server.Packet15Place.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException at me.sd5.nostarvation.NSPlayerListener.onPlayerInteract(NSPlayerListener.java:30) at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 12 more
@user_787292
Please send the whole error code...
I keep getting these messages in my console every second.
CONSOLE: [SEVERE] Could not pass event PlayerInteractEvent to NoStarvation
What's up with that?
@sd5
Can you have an option to enable Hunger? (food will heal your health.. not hunger bar though) I have a plugin that has waterbuckets heal your hunger. I want food to directly heal your health bar.
@h0ur
Hm, I'm sure I added the cake value to the config -.-
Anyway I'm going to upload a new file, with the cake value...
Thanks for reporting that bug :)
You sir are a boss. Thank you. edit: Found a bug does not load the cake value in the config I even deleted the folder from 1.0.2 and regenerated it. But still no dice.
@Pandamatak
There is a config... :)
Can you make the amount healed by each foot item configurable?