MOCGoodEats

Proper nutrition leads to performance improvements. Using the ChooseMyPlate nutritional guidelines, if players eat from the five food groups in the proper amounts, they receive speed and other buffs. If they don't, or they eat too much junk food, they incur penalties. Requires Spout for the HUD display.

NOTE: Please contact us if you are an educator or nutritionist and have an interest or idea for using this to teach nutrition. We'd be happy to help.

Part of the Minds of Chimera Project (dev)
MOCPlaytimeTracker | MOCDBLib | RegenBlock | MOCGoodEats | MOC3DImporter | MOCKiosk | MOCChemistry
Minds of Chimera
See development versions in action on our server: isue-server.eecs.ucf.edu



How it Works

Players when they eat different foods, add to that particular food group's nutrition level. The amount is equivalent to the item's food level and fruit adds to fruit, vegtables to vegtables, etc. So, for example, an apple adds 20% to fruit. Each group contributes to the player's overall nutrition levels, as roughly defined by the ChooseMyPlate standards by the USDA (fruit:20%, vegtables:30%, grains:30%, proteins:20%, dairy:30%). This totals to 130% and any nutrition level above 100% is a bonus to your movement rate. As well, nutrition levels below 30% reduce your movement.

Nutrition HUD:
Here you can see the player is at pretty good nutrition levels, but is lacking in dairy (11%). They have a 15% movement bonus because of this. The icons will improve a bit (smaller). Eating pops up the detailed nutrition level display (right) for 5 seconds or press 'n' to toggle it.
Screen Capture|width=400


Junk Food
You can eat junk food, but they are empty calories. If you eat too many, you start to have it count against you. So, one cookie is fine, but two gives you a 10% impairment.

Expectations
Expect to remain mostly in the "no change" category. Players that do spend time eating diversely (remember that you can't eat if you are full, so some planning is required) will get speed bonuses. It is actually hard to have nutritional impairments as well so the plugin doesn't punish players much; hopefully, this only adds to the game.

Additional Foods
The config files allow you to incorporate new foods in the game if you make them with Spout in another plugin, or redefine nutrition levels per food item if you wish.

Database
Currently using MOCDBLib to store data in a MySQL or SQLite database.

Commands and Permissions

  • /ge help
  • /ge ? - list help about this plugin
  • /ge
  • /ge status <player> - lists self or other player's nutrition level, <player> is optional
  • /ge tick <player> - perform a hunger tick, so the player's hunger goes down a bit
  • /ge set [hunger|fruit|vegtable|grain|dairy|junk|protein|all] [0-100|half|full] - sets a nutrition or hunger level to the given amount

Permissions

  • moc.MOCGoodEats.Admin: use the tick and set commands
  • moc.MOCGoodEats.Use: incorporates the nutrition functionality

Project Status

Works. Needs a GUI display on the inventory screen. Otherwise, works.

Installation

  • Requires SpoutPlugin to be installed.
  • Install the MOCDBLib.jar.
  • Drop the MOCGoodEats jar file into the plugins directory.
  • Restart the server to generate config.yml and DBLib.properties files in your plugins/MOCGoodEats directory.
  • Modify the DBLib.properties file to configure a MySQL database (uses SQLite by default).
  • If you want, modify the config.yml file to change food levels.
  • Restart the server to incorporate the config.yml or DBLib.properties file changes.

ToDo

  • shrink icons
  • turn off functionality if they don't have use permissions
  • have ability to configure HUD location in config.yml file.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit

  • 3
    Jan 13, 2013