HomeJavaModsMoreGapples 1.8-1.10
MoreGapples 1.8-1.10
Overview:
This is a plugin that allows you to create your own custom eatables.

Features:
- Custom Name for the edible.
- Custom Item id for the edible.
- Unlimited custom lores.
- Unlimited custom potion effects when it is eaten.
- Custom Cooldown for each edible.
- Custom Hunger filled for each edible.
- Custom Saturation for each edible.
- Custom Instant Health on eaten for each edible.
- Ability to add the glowing enchant on the item.
- Supports color formats.
- Supports the data value of an item. e.g 322:1 (Super Golden Apple)
- Create Unlimited Custom Edibles.
- In-game/Console Command to change any value of any edible
- Command to give a player an custom edible, that is accessible in console as well as in-game.
- Allows you to still have the vanilla items and their own effects.
- Each Edible have different file to make it easy to maintain.


Spoiler: Commands
Code (Text):
   moregapples:
commands:
  moregapples:
    description: Information about the plugin
    aliases: [moreeatables, moree, moreg]
  giveapple:
    description: Gives Custom Enchanted Apples
    aliases: [ga, ge, giveeatable]
  eatableconfig:
    description: Change values of config or reload config
    aliases: [appleconfig, eatablec, applec]
  createeatable:
    description: Create a new eatable
    aliases: [createapple, createe, createg]
 

Spoiler: Permissions
Code (Text):

permissions:
  apples.admin.give:
    description: Allows admin to give someone a custom made gapple
  apples.admin.config:
    description: Allows player to change values in config or reload it.
  apples.bypasscooldown:
    description: Allows player to bypass the cooldown timer.
 

Default Config:
The EatableCooldownUpdate is the time in seconds, on every which it will update the time left for cooldown to end.
Best is to leave it to 1.
The HiddenEatableProtection will be added later, but what it will do is add a layer of extra lore that will not be visible and will be same as the eatable name. Just incase if players can edit their item's name and lore, so it wont actually give them advantage.
For now it is not added and wont actually work.
The PotionEffectOverwriteonTime is if you want that when a player eats an eatable and already have the effect that the eatable will also give, to measure the time duration if its less only then it will give him new according to the eatable time, else if it higher then the eatable will give, the duration will remain the same.
If it is false, then it will remove any effect that the player have and matches with the eatables effects, no matter if the current one is longer.

Spoiler: Default Config File
Code (Text):

# Example eatable.
#Apple1:
#  Name: "Bad Gapple"
#  Lore:
#  - "This is a custom"
#  - "Second Line of Custom Lore"
#  Item: 322
#  Data: 1
#  Glow: false
#  Food: 5
#  Saturation: 2.0
#  Health: 0
#  Cooldown: "2m"
#  Effects:
#  - "BLINDNESS:100:1"

EatableCooldownUpdate: 1
PotionEffectOverwriteonTime: true
HiddenEatableProtection: false
 

Setting up eatables:
To add an eatable you can either do it manually or create it with the help of command. /createe <File Name> <Item> <Glow> <Name>
This command can be run from both ingame/console.
Example of command usage.
/createe My_Apple 322:1 true Example Apple
This will create a file named "My Apple" the "_" is replaced by a space.
Name can be a string with colors supported.

*Hunger filled and Instant Health:
1 represents half of heart or hunger.
20 for hunger is max
for health it depends on max health of player.

If you want to make it manually copy and paste file. and edit it to your likes.
Be sure to /appleconfig reload

Spoiler: Example Eatable file
Code (Text):

Test:
  Name: "&cVirtutem Apple [1]"
  Lore:
  - "&bNight Vision (8 Minutes) Weakness (4 Minutes)"
  Item: 322
  Data: 1
  Glow: false
  Cooldown: "1h1m60s"
  Health: 0
  Food: 5
  Saturation: 2
  Effects:
  - WEAKNESS:480:1
  - NIGHT_VISION:480:1
 

Legend for Eatables file:
- Name is the custom name of the item.
- Lore is a list of text that you want as a lore on that item.
- Item is the item id of which item you want to use.
- Data is the data value of the item.
- Glow is the enchantment effect on the item.
- Food is the hunger it will fill when a player eats the eatable.
- Saturation fills the exhaustion of player.
- Health is the instant health the player will get when he/she eats the eatable.
- Cooldown is the time player has to wait before eating the eatable of the same type.
* Usage Examples:
* "1h" 1 hour cooldown
* "1m" 1 minute cooldown
* "1s" 1 second cooldown
* "1" 1 second cooldown.
* "1h1m1s" 1 hour + 1 min +1 second cooldown.
- Effects is the list of text that will contain the potion effect, time, level.
- In Format:
* Name:Time:Level
* Time is in seconds.

Spoiler: 1.8 Potion Effects Names
ABSORPTION
BLINDNESS
CONFUSION
DAMAGE_RESISTANCE
FAST_DIGGING
FIRE_RESISTANCE
HARM
HEAL
HEALTH_BOOST
HUNGER
INCREASE_DAMAGE
INVISIBILITY
JUMP
NIGHT_VISION
POISON
REGENERATION
SATURATION
SLOW
SLOW_DIGGING
SPEED
WATER_BREATHING
WEAKNESS
WITHER
Spoiler: 1.9 Potion Effects Names
SPEED
SLOW
FAST_DIGGING //Haste
SLOW_DIGGING //Slowness
INCREASE_DAMAGE //Strength
HEAL
HARM
JUMP
CONFUSION //Nausea
REGENERATION
DAMAGE_RESISTANCE
FIRE_RESISTANCE
WATER_BREATHING
INVISIBILITY
BLINDNESS
NIGHT_VISION
HUNGER
WEAKNESS
POISON
WITHER
HEALTH_BOOST
ABSORPTION
SATURATION //Hunger getting filled up
GLOWING
LEVITATION
LUCK
UNLUCK

Spoiler: 1.10 Potion Effects Names
ABSORPTION
BLINDNESS
CONFUSION //Nausea
DAMAGE_RESISTANCE
FAST_DIGGING //Haste
FIRE_RESISTANCE
GLOWING //Spectating
HARM
HEAL
HEALTH_BOOST
HUNGER
INCREASE_DAMAGE //Strength
INVISIBILITY
JUMP
LEVITATION
LUCK
NIGHT_VISION
POISON
REGENERATION
SATURATION //Hunger getting filled up
SLOW
SLOW_DIGGING //Slowness
SPEED
UNLUCK
WATER_BREATHING
WEAKNESS
WITHER

Command Usage:
To get an custom gapple
/giveapple <File Name> <Amount> (Player)

<> = Needed
() = Optional only if in-game else in console needed
The ID is the number after "Apple" in config.

/eatableconfig <File Name | Reload | Config > <Name | ItemID | ItemData | Glow | Cooldown | Lore | Effects | Health | Food | Saturation> <value>

More Detail:
/eatableconfig<File> <Lore/Effect> <Edit | Add | Remove | Set> (line number) <Value>

/createe <File Name> <ID> <Glow> <Name>

Each Eatable is fully cuztomiable from console/ingame command.

Usage:
The Gapples can be received by adding it to kits or other plugins that supports the use of ItemMeta.
Crafting for the eatables may be supported in the future but as of now it is not. :(

Suggestions would be highly appreciated
To Do:
- Add command to create a eatable.
- Cooldown
- Add Support for API
- Add auto updater.
- Custom Crafting for Items
- Custom Messages.
- Hidden Key to prevent user abusing powers of being able to change an item's lore and name
- Signs to buy eatables from.
- Gui to buy eatables from.
IMPORTANT:
Do not create 2 items that have same name and lore list.
Also if you change a previously made item in their file, either remove or change name/lore, the previous created items in-game wont work any longer.

Milestone:
50 Downloads
100 Downloads
250 Downloads
500 Downloads
750 Downloads
1000 Downloads

Known Bugs:
- Players cannot continue their eating que with custom eatables. for example. if you eat normal steak and have more then 1 and your hunger don't get filled by 1, it will automatically start eating the 2nd too. But that is not the case with eatables, although it will automatically start eating but it wont work, and will just stop their. (No Big issue about this tho.)

Found an error?
If you notice any bug, please report it on here, i will try to fix it asap. it would be very appreciated that rather then giving low rating discuss the issue with me :D

Want to support me?
If you want to support me by sending me some amount, feel free or if you don't want to do that please review my plugin :)

Donate :
[​IMG]

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MoreGapples 1.8-1.10 is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10. Downloaded 996 times (via Spigot). Download it and open it directly in the game.

Explore more