// FoodLol | [1.14-1.17] | [Custom Food Textures] \\ icon

// FoodLol | [1.14-1.17] | [Custom Food Textures] \\ -----

Add fully custom food into the game.



Requested By: ItsGamingSoni

NOTE: THIS PLUGIN USES JAVA 11. JAVA 8 IS NO LONGER COMMERCIALLY SUPPORTED BY ORACLE AND ALL HOSTS SHOULD UPDATE TO JAVA 11. IF YOU GET AN ERROR ON STARTUP SAYING YOUR JAVA COMPILATION VERSION IS 52, YOU NEED TO TELL YOUR HOST TO UPDATE.

I don't think this plugin is big nor special enough to call for graphics. Have you ever wanted to allow your players to eat custom textured food that affects food/health in a custom way? Well, that's what this plugin does. Tada.

Permission to use all commands is "foodlol.use"
Features:
- Custom textured food:
You have to have knowledge of a complicated setup process but you can "add" custom textured items for food without replacing any vanilla items.
- Custom eating noise: Vanilla food has a boring eating noise. Spice that up with custom food made with FoodLol.
- Custom eating cooldown: Vanilla food has a built in cooldown. Spice that up with custom food made with FoodLol.
- Custom eating effects: You can change hunger and health in positive or negative ways with custom food made with FoodLol. Make a "Mystery Bar" that either gives players a second row of health or kills them entirely? Completely possible. Make food that adds to the health but takes away from hunger? Possible.
- Custom eating effects pt2: You can get ACTUAL effects from food. Custom golden apples? Possible. Make a food that looks like gunpowder, is called speed, and gives players speed 20? Possible.
Texture W/ Resource Pack Explanation:
  1. Understand https://www.planetminecraft.com/for...ring/new-1-14-custom-item-models-tuto-578834/ and how it works.
  2. Incorporate that into the configuration.
Texture W/o Resource Pack Explanation:
  1. Know that without a resource pack the item has to be a custom textured skull.
  2. Refer here: https://minecraft-heads.com
    [​IMG]
Code (Text):

##########################################################
#                     FoodLol Config                     #
##########################################################

Cooldown: 2
#This is the cooldown in seconds between "eating" food items
#This is in use because there is no eating animation

Cooldown_Message: "&ePlease wait to swallow..."
#This is the message if players attempt to eat too soon after
#just eating

Sound:
 default: "ENTITY_GENERIC_EAT"
 AddThemLikeThis: "ENTITY_GHAST_SCREAM"
#You don't have to include this for each food type but for the
#specifics that you want to change, put them here.
#https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Sound.html

Override_Max_Health: true
#If this is enabled and a food item gives more health than a
#player's maximum health, it will increase their maximum
#health to account for it. This can be used to get unsafe
#amounts of health with too many items

Food:
 ExampleFoodIdentifier:
  health: 0
  hunger: 1
  id: "DIAMOND_SWORD"
  name: "&r&l&1L&2o&3l&4l&5i&6p&7o&8p"
  lore:
   - "&r&dA delicious lollipop."
  return:
   id: "STICK"
   name: "&r&1Lollipop Stick"
   lore:
    - "&r&7This seems a bit useless."
  flags:
   - "HIDE_ATTRIBUTES"
   - "HIDE_UNBREAKABLE"
  tags:
   - "unbreakable:1"
   - "forcestack:12"
   - "custommodeldata:296370"
  commands:
   - "/say I like men."
 AddThemLikeThis:
  health: -2
  hunger: 0
  id: "DIAMOND_SWORD"
  name: "&r&l&aPoison"
  lore:
   - "&r&2Probably don't eat this."
#Here is where you add all the food items you want to create
#health - The change in health the player gets upon eating. Can be negative. Not optional to include.
#hunger - The change in hunger the player gets upon eating. Can be negative. Not optional to include.
#id - This is intended to be the item of a custom textured item. You should know how this works. Not optional to include.
#return - The item the player gets back in their inventory after eating. Uses this same formatting but without health and hunger. Optional to include
#amount - This is the size of the item stack. Optional. Not sure why you'd use this but it's an option.
#name - This is the name of the item. Optional.
#lore - This is the lore of the item. Must follow multiple line structure. Optional.
#enchantments - Format is 'ENCHANTMENT:LEVEL'. Optional. Not sure why you'd add it but it's an option.
#- arrowdamage
#- arrowfire
#- arrowinfinite
#- arrowknockback
#- damage
#- digspeed
#- durability
#- fireaspect
#- knockback
#- lootbonusblock
#- lootbonusmob
#- luck
#- protectionfall
#- protectionfire
#- silktouch
#effects - Format is 'EFFECT:LEVEL:TIME (seconds)'.This is the effects that a player will receive upon eating a certain food. Must follow multiple line structure. Optional.
#        - Effect names can be found at
#        - https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
#commands - Format is '/COMMAND'. This forces the player to run a command with max permissions. Just to specify however, the player is running the command not server. Optional.
#tags - Used to make some custom item attributes. All these are optional.
#- playerskullskin:VALUE
#- vanilladurability:DURABILITY
#- custommodeldata:SevenDigitNumber


##########################################################
#                        Version                         #
##########################################################

VERSION: 9
#Do not touch this. No touchy.
 
Resource Information
Author:
----------
Total Downloads: 13,490
First Release: Nov 21, 2017
Last Update: Aug 11, 2021
Category: ---------------
All-Time Rating:
12 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings