Custom Foods // Miden's Foods icon

Custom Foods // Miden's Foods -----

Allows you to add custom, eatable foods to your server without mods!




This is a drag & drop update. There are no changes to the config, just the internals of the plugin. You should, however, delete your foodvalues.yml and satvalues.yml files.

- Replaced satlevels.yml and foodlevels.yml with an internal Enum. These files can and should be deleted, as they serve no purpose.

- Fixed a bug where Shapeless recipes added by the plugin could be crafted with no ingredients.

- Fixed the bug that caused a need for the plugin to be reloaded/server restarted to load custom foods (Thanks to ks-hl on github/Heliosares on Spigot for fixing this bug)

- Added the original FoodLevelChange event to the CustomFoodEaten event so that it's information can be retrieved directly, and so that the original event can be canceled.

- Reworked the internal hunger & saturation change mechanics to now cancel the original FoodLevelChange event. This fixed the bug causing a player not to be able to fill their hunger bar all the way up if they're eating a custom food who's new hunger fill value was less than the base food's value.

- Removed the last piece of the old Legacy system of handling custom foods.
----------, Mar 1, 2024

After an enormous amount of time making plugins in my free time and first learning Java, I've improved and polished this plugin up enough to the point where I feel that it is finally deserving of a non-beta version number. This update is not safe to drag and drop as there are a number of changes to the config format.

- Wiki is finally up! Find it here: https://github.com/MidenTheDev/Miden-s-Foods/wiki

- The "Type" field in all of your custom foods have been updated to "Recipe-Type." Change this accordingly in your config, as it will not update automatically.

- Legacy food system removed, and 1.13 support has been dropped.

- Added Honey Bottles as a supported Food Base. You will have to delete your Foodvalues and Satvalues files in your plugin folder for this to take effect.

- Added the "Amount" field under every food's "Recipe" field. This allows you to set the amount of the item desired when the recipe is crafted. This is not a required addition to the config.

- Improved the tab-completer

- Added Blast Furnace as a valid Recipe-Type option with a config example.

- Lowered the default EXP gain from cooking recipes in the default config

- Shapeless recipe "Ingredients" field changed to "Recipe" with the "Ingredients" field contained within it. This is to accomodate the "Amount" option in recipes.

- Got rid of outdated information in the config comments.

- Added some error detection so that the plugin doesn't simply crash when you make a small spelling mistake in the config.

- Fixed a bug where the amplifier of effects wouldn't do anything, and would always be zero.

- Fixed a bug that made custom foods unusable as recipe ingredients for recipes other than shaped crafting recipes

- Fixed an error with the "Golden Chicken" item in the default config
----------, Sep 2, 2023

Fairly straightforward update this time. Sorry for the lengthy delay.
  • You can now run commands from the console level when a player eats a custom food. An example is now included in the default config, which can be found on the spigot page & github.

  • Saturation is now handled using doubles rather than integers, meaning decimal saturation values are now supported.

  • Lore is now handled as a list instead of a single string. Adjust your configs accordingly and see the new default config for examples.

  • General Code cleanup & efficiency improvements
----------, Mar 22, 2023

After quite a long time away, I've come back to give some much needed polish and refinement to my plugins, and introduce some features that are _long_ overdue. This update for Custom Foods / Miden's Foods is the first of many to come for all of my plugins. I decided to start here since this is the one which has had the longest wait for a new update of any kind.

- Removed the craftblock feature entirely. My implementation of this feature was extremely buggy and never really worked properly in the first place. If you want to block custom foods from being used in vanilla recipes, use a separate plugin, such as WolfyScript's Custom Crafting.

- You can now attach potion effects to your custom foods. You can determine what effects, how long they'll last, and how strong they will be in your config.yml. An example of a custom food with potion effects is now available in the latest version of the config.

- You can now use custom foods in the recipes of other custom foods. Note: THIS ONLY WORKS FOR SHAPED AND SHAPELESS CRAFTING RECIPES AT THIS MOMENT! Use "CFD-[FoodConfigName]" as an ingredient to use a custom food in the crafting recipe of another custom food. This does not work when using the legacy system.

- For developers with my plugin on the server, I've begun working on an API which will allow you to do much more with the plugin. As of right now, there is a new custom event which fires when the player consumes a custom food made by my plugin. By the time 1.0 releases, there should be a more full API with documentation, so be on the lookout.

- The plugin is now open source! The github page for the plugin is available on the main spigot page.

That should wrap up this update for now. See you all soon. Be sure to join the discord server for help and support as well as announcements related to the plugins: https://discord.gg/xBS7jk6Wtg
----------, Dec 3, 2022

I've taken a bit of a break but am back to working on stuff again! This is the first update I've put out for either of my plugins in about a month, and it's a nice addition that's been asked for a bit ago.
YOU WILL HAVE TO RE-GENERATE YOUR messages.yml FOR THIS VERSION TO WORK!

- Switched to a better system of custom configs (messages.yml, foodvalues.yml, and satvalues.yml are created in a different, more efficient way)
- Added in-game commands to create custom foods! By using the command /cf create [number] [number] you're able to create a shell for your own custom food! The first number is the hunger fill and the second is your saturation. If you want to add a recipe or change the name/lore of the item you will have to do that within the config. (Do note that a reload with /cf reload is necessary to get the fooditem working again.)

That's all for this version, be sure to check the Trello page to see what I'm working on! https://trello.com/b/8mwokUn2/midens-foods
----------, Nov 20, 2021

This update is just to fix some old bugs and new bugs that have been causing problems. I added some minor (basically unnoticeable) things as well, apart from these three which stand out:

- Fixed a bug where when the plugin loads for the first time, you will have to restart the server to get the plugin to work properly.
- Fixed a bug that caused the plugin to erase new additions to the config when reloaded with the cf reload command.
- Added an update checker that, from now on, will remind you when there is an available plugin update.
----------, Oct 3, 2021

This is definitely one of the biggest updates I've released in one patch. The intention was to allow legacy support (under 1.13) but that requires a separate plugin that will be out soon. In the meantime, I've got other updates that need to get out soon. So here we are!

THIS PLUGIN REQUIRES YOU TO RE-GENERATE YOUR CONFIG

  • Re-designed the way the plugin handles custom foods. The legacy (the way the plugin used to do it) system can be enabled manually.
  • This redesign uses the Custom Model Data ID system, so you have to re-generate your config to see how to add IDs. IDs must be unique per-item!
  • Introduced support for custom Saturation along with a Satvalues file. I don't recommend editing this file (same as the Foodvalues) but it is there.
  • 1.13 is now officially supported by the plugin! The ID system is not used when using 1.13, so the IDs in the config are not necessary.
  • A resource pack that shows how to change the textures of the fooditems is now available! Download it here!

That's all for now! Be sure to join the discord for development previews and more frequent updates on what's going on with the plugin!
----------, Sep 11, 2021

Just a quick hotfix to fix a bug related to the in-progress craftblocker function

- Fixed bug where you were unable to remove a custom fooditem from a furnace's cook slot
----------, Aug 26, 2021

This will likely be the 2nd to last of the major 0.7 updates as the main goals I had set for this update have been taken care of. The next string of updates (0.8) is going to be the string that I re-do most of the code I've written and add new features along the way. The main of these shown is legacy support which is possible with the plugin supporting Java 8 and me finally getting used to Java again after not touching it for years. THE FIRST OF THE UPCOMING 0.8 UPDATES WILL REQUIRE YOU TO RE-CREATE YOUR CONFIG! THIS IS THE FIRST HEADS UP!

- Added a Messages.yml to allow for people to translate messages from the plugin into other languages or to allow for customized messages (Influenced by bStats metrics that showed majority of the servers were hosted in countries where English is not the primary language)
- Finally fixed an age-old bug where you had to restart the server or reload the plugin to make it work after the first time loading the plugin.
- Got rid of the item preview in the crafting table when using a craftblocked item.

I'll be continuing to work on the craftblocker function, and it may (or may not) have an update in the 0.7.4 update or an update following it. I may also create a standalone plugin that features this as a function for those who want it but not the rest of the plugin. See y'all another time.
----------, Aug 26, 2021

- Fixed a bug stopping people not using java 15 or above from running the plugin
- Polished the commands a bit and added a help menu to the base /cf command
----------, Aug 15, 2021

Got rid of a message sent to someone autocompleting the commands (was used during testing) that I left in on accident.
----------, Aug 7, 2021

The 0.7.x string of updates is meant to polish the plugin and fix long standing bugs. Since the plugin has always lacked a certain amount of polish and has always been riddled with infamous bugs. I feel that so far, these updates help give a more proper feel to the plugin instead of the scrappy "thrown together in a week" feel it had before (note it took longer than a week for the original 0.4)"

PERMISSIONS HAVE BEEN CHANGED! Be sure to update your permissions.

New changes:
- Changed commands to a less congested version (/cfdg -> /cf g)
- Added tab-complete options for the new commands
- The plugin now gives you a warning when you try to give yourself food that doesn't exist
- The in-plugin reload command now functions properly and you are able to add new foods and change existing foods in the config and not have to restart your server to get it to work

New bugs:
- The /cf reload command will attempt to autocomplete with your food items. I'll be continuing to try to fix it, but it isn't an urgent bug so it will be there until a minor (0.7.1.X) patch
----------, Aug 7, 2021

Reload command was causing a NullPointerException error which is now fixed.
----------, Aug 5, 2021

- I attempted to implement Bstats into the plugin in order to collect data on the plugin. You are able to turn this off in the bstats folder if you want but the data collected is useful to me and the performance impact of bstats is negligible.

- I also did some minor changes to the /cfdr command to (hopefully) get it to work a bit more consistently.

- I also got rid of the "INVALID FOODITEM" spam that would happen occasionally when using the /cfdg command.
----------, Aug 5, 2021

This update did 3 main things:

- Switched the API version to 1.14.
- Switched to a Maven project instead of a legacy project.
- Added a craftblocker function that prevents players from using a custom food in normal recipes.

The third point is the biggest, and here is how it works:
There is a new line in the config called CraftblockKey which is a string. The plugin will check if this string is in the name of any item when that item is being used to craft something. If it is, it will cancel the item crafting event. For example: The base item of the Chicken Kebab item is chicken, and because of that you can use the chicken kebab to re-craft another chicken kebab. Now, when the chicken kebab is used to try to craft a chicken kebab again it will not let the player craft the new kebab.

I am still working on getting this to work with furnaces, smokers, and campfires so expect new updates for those soon.

DO NOTE: THIS MAKES THE CUSTOM FOODS INCOMPATIBLE WITH A CUSTOM RECIPE PLUGIN LIKE CRAFTENHANCE IF USING THE FEATURE!
Craftenhance recipes will be canceled if a custom food is used in the recipe, so do not update the plugin yet if you are using craftenhance to add recipes using custom foods. The 0.6.2 version of the plugin can be found here if you downloaded the new update but want to downgrade.
----------, Jul 1, 2021

Added official 1.17 support.
----------, Jun 19, 2021

General Updates:
- Using /cfdg [item] now just gives you one of the item instead of causing an error and doing nothing.
- The item in /cfdg no longer has to match the exact name in the config. writing "/cfdg toast" is just as good as saying "/cfdg Toast" or even "/cfdg ToAsT." As far as the plugin is concerned, toast is toast.
- Shapeless Recipes are now fully supported! The example in the default config is at the bottom and titled "Chicken Kebab"
----------, Feb 27, 2021

General Updates:
- Smoker and campfire recipes are now available!
- Fooditems with no recipe also work! Put "None" in the "Type:" section in the config! This is for people who want to use a different plugin for custom crafting recipes.
- Old recipes titled "Table" now need to be called "Shaped" while I work on Shaped & Shapeless recipe support.
- Though it shows up in the config, Shapeless recipes are not fully supported! You can use the in-game give command to get the item, but the recipe will not work.

Misc:
- Expanded the functionality of the give command. You can now use /cfdg [item] [amount] to give yourself multiple of the fooditem. leaving the number blank will give you an error (working on fixing that!)


Further notes:
The next update will allow shapeless recipes and fix the give command.
----------, Feb 27, 2021

Added a built-in give and reload command!
Use /cfdr or /cfdreload to reload the plugin
Use /cfdg <item> or /cfdgive <item> to give yourself one of your custom added foods!
----------, Feb 7, 2021

Fixed the bacon recipe in the default config to prevent the annoying error
----------, Feb 4, 2021

Resource Information
Author:
----------
Total Downloads: 7,478
First Release: Feb 4, 2021
Last Update: Mar 1, 2024
Category: ---------------
All-Time Rating:
9 ratings
Find more info at github.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings