✅ BetterEggs [1.8-1.16] • Unlimited eggs! Permissions! Textures! NBT support! 0.6-BETA

Make your players walk to hatch mystery eggs.

  1. AlonsoAliaga
    Native Minecraft Version:
    1.13
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    • 1.14
    • 1.15
    • 1.16
    Languages Supported:
    Customizable in config.yml
    [​IMG]
    This plugin requires NBT API installed!
    Tested on 1.8.8, 1.9.2, 1.10.2, 1.11.2, 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.2
    You are not allowed to post/move/copy this on mcbbs.net or similar. Don't insist.
    If you want to contribute with a translation in your native language, feel free to dm me the translation.

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG] [​IMG] [​IMG] [​IMG] [​IMG]

    [​IMG] [​IMG] [​IMG] [​IMG]

    [​IMG][​IMG]

    Looking for a way to reward your player for moving or exploring?
    Do you want to give rewards to player they must hatch before using?
    Tired of players asking for new ways to get items?

    Well, I am! I created this plugin because of that.

    What is this exactly?
    This is a plugin for Spigot that allows server owners to create custom hatchable eggs.

    And what is that?
    Hatchable eggs are eggs that must be hatched in order to get rewards from them.

    How to hatch an egg?
    Eggs are hatched just by walking. Yes, walking. Once the player walked the required amount of blocks for the egg
    it will be ready to hatch or it will hatch automatically if option is enabled.

    Sounds good, but is it customizable? I mean, can I add my own rewards?
    Of course you can. You can add any item you want. You can add up to 54 items per egg.
    And you can create an unlimited amount of eggs.

    Great! What about permissions?
    You can add permissions per egg if you want so only some players can hatch certain eggs!

    Note: NBT items are supported. However if internal code is too long, you'll get a nice error.
    Usually happens with nested backpacks.
    [​IMG]
    [​IMG]
    • Action bar messages.BETA!
      • Notify players when egg is ready to hatch.
      • Notify players when egg hatched.
    • Unlimited eggs. BETA!
      • Create as many eggs as you want.
    • Custom eggs loot. BETA!
      • Add up to 54 items per egg type.
      • Select minimum and maximum amount of items the player can receive.
    • Commands supported for rewards. BETA!
      • Add up to 54 commands per egg type. (Without items)
      • Commands CANNOT BE EDITED IN-GAME.
      • Display commands in loot gui as papers with displayname.
    • User friendly.
      • GUI to modify eggs loot.
      • One command only for normal players.
    • Custom textures. BETA!
    • Random textures per egg. BETA!
      • Random texture for one egg so it doesn't look always the same.
      • You choose the textures. Add as many as you want!
    • Real time item update. BETA!
      • Egg items are updated in real time.
      • Check how many blocks are left to hatch an egg.
    • Custom displayname and lore per egg. BETA!
      • Each egg can have a custom displayname and lore when they are not ready to hatch.
      • Each egg can have a custom displayname and lore when they are ready to hatch.
    • Command auto complete. BETA!
      • Autocomplete feature will tell you how to use a command.
    • Reload command. BETA!
      • Update config changes without restart. (Some checks require restart)
    • Egg status command. BETA!
      • Check all status of eggs with one command.
    • Give command. BETA!
      • Give eggs to players with custom amount of blocks. (Works in console too)
    • Loot check.BETA!
      • Players can check eggs loot with a command.
    • System to prevent afk. BETA!
      • The system prevents player from hatching eggs in anti-afk machines.
      • The player must be moving while moving the camera to hatch eggs.
    • Custom permissions. BETA!
      • Each egg can have a custom permission.
    • Fly blacklist feature. BETA!
      • Enable/disable the hatching when flying.
      • Permission to hatch while flying.
    • Blacklisted worlds. BETA!
      • Prevent players from hatching eggs in certain worlds.
    • Hand restriction. BETA!
      • Make eggs hatchable only when they are in main hand.
      • Make eggs hatchable only when they are in off hand. 1.9+
      • Make eggs hatchable only when they are in both hand. 1.9+
    • Powerful Developer API BETA!
      • Developers can use plugin methods to create custom eggs and random eggs.
    • ALIASES! BETA!
      • Edit aliases for the main command to fit your server language!
    • ProtocolLib Support.
      • Used for action bar messages.
    • Configuration auto update.
      • Configuration will be updated on plugin update.
      • Comments will be removed on config update.
    • Update checker.
      • Be notified when there is a new update.
    [​IMG]
    config.yml
    Code (YAML):
    #             ___      _   _           ___
    #           | _ ) ___| |_| |_ ___ _ _| __|__ _ __ _ ___
    #          | _ \/ -_)  _|  _/ -_) '_| _|/ _` / _` (_-<
    #         |___/\___|\__|\__\___|_| |___\__, \__, /__/
    #                                     |___/|___/
    #                           by AlonsoAliaga
    #          https://www.spigotmc.org/resources/authors/281176/
    #

    Messages
    :
      No-permission
    : "&cYou don't have permission to do this."
      Reloaded
    : "&aSome messages and options have been reloaded. Other may require a restart!"
      Invalid-player
    : "&cPlayer is not online!"
      Cannot-stacked
    : "&cYou cannot use stacked eggs.."
      Corrupted-egg
    : "&cThis egg doesn't seem to be legal.. Delete it immediately!"
      Disabled-world
    : "&cEggs cannot be hatched in this world :("
      Create
    :
        Already-exists
    : "&cSeems like there is already an egg with that name."
        Egg-created
    : "&aYou created '{EGG}' egg. Edit loot with /bettereggs edit {EGG}"
      Edit
    :
        Cannot-edit-enabled
    : "&cThis egg seems to be enabled. You cannot edit enabled eggs. Disable it first with the command /bettereggs toggle {EGG}"
        Invalid-egg
    : "&cThis egg doesn't seem to exist. Create it first with /bettereggs create {EGG}"
        Edit-title
    : "&8Editing {EGG} loot"
        Loot-updated
    : "&aEgg loot for '{EGG}' has been updated."
        Already-editing
    : "&6Looks like someone else is editing this egg too. See changes in real time!"
        Queue-edit
    : "&6Someone else is editing this egg loot. Changes will be saved when all players finish edit."
        Max-items
    : "&cLoot can include up to 54 items. We removed the rest."
        Max-items-commands
    : "&cLoot can include up to 54 rewards. Loading the first 54 (including items and commands)."
      Loot
    :
        No-permission
    : "&cYou are not allowed to view this egg's loot :("
        Invalid-egg
    : "&cThis egg doesn't seem to exists. Create it first with /bettereggs create {EGG}"
        Invalid-item
    : "&cYou are not holding a valid egg in your hand. Try again!"
        Disabled-egg
    : "&cThis egg is not currently enabled. Please try again later or contact a staff member."
        Loot-title
    : "&8{EGG}'s loot"
      Give
    :
        Invalid-egg
    : "&cThis egg doesn't seem to exists or is disabled :("
        Invalid-blocks-amount
    : "&cAmount of blocks is not valid. Must be greater than 0."
        Success
    : "&aYou gave one '{EGG}' of '{BLOCKS}' blocks to {PLAYER}."
        Received
    : "&6You received one '{EGG}'!"
        Received-extra
    : "&6You received one '{EGG}'. Check the floor, some items might be there!"
      Interact
    :
        Disabled-egg
    : "&cThis egg loot is not available. Contact an administrator :("
        Egg-not-ready
    :
       - "&cThis egg is not ready to hatch. Walk {REMAINING} blocks to hatch."
        Egg-ready
    :
       - "&6You walked {BLOCKS} blocks and this egg is ready to hatch! Right click while sneaking to hatch."
      Hatch
    :
        Main-hand-only
    : "&cYou can open eggs using main hand only!"
      #These messages will be sent in actionbar if possible.
      Notifications
    :
        Ready-to-hatch
    : "&a&lEgg is ready to hatch!"
        Hatched-nothing
    : "&a&lAn egg hatched! &r&cYou didn't get any rewards :("
        Hatched-reward
    : "&a&lAn egg hatched! &r&aYou received {AMOUNT} reward(s)!"
      Toggle
    :
        Invalid-egg
    : "&cThis egg doesn't seem to exist. Create it first with /bettereggs create {EGG}"
        Corrupted-egg
    : "&cCouldn't load '{EGG}'. Removing section from eggs.yml is recommended!"
        Egg-disabled
    : "&cYou have disabled '{EGG}'. Players cannot hatch this egg now."
        Egg-enabled
    : "&aYou enabled '{EGG}'. Players can hatch this egg now."
      Eggs
    :
        Enabled
    : "&2&lEnabled"
        Disabled
    : "&c&lDisabled"
        Format
    : "&6➤&8 (&7{IDENTIFIER}&8) &e{EGG} &7: {STATUS}&r"
        List
    :
       - " &r"
        - "&c&lEgg Status:&r"
        - "{EGGS}"
        - " &r"

    Options
    :
     #If enabled, walked blocks will count in main hand.
      Main-hand
    : true
      #If enabled, walked blocks will count in off hand. Available only in 1.9+. For 1.8 having the egg in main hand IS required.
      Off-hand
    : true
      #Disable block count when player is flying
      Allow-flight
    : true
      #Eggs cannot be hatched in these worlds.
      Disabled-worlds
    :
     - "world_pvp"
      - "world_plots"

    Permissions
    :
      Admin
    : "bettereggs.admin"
      #Permission to count blocks walked. Player needs to login again after receiving the permission.
      Use
    : "none" #Example: "bettereggs.use"
      #Permission to use "/bettereggs loot" to check eggs loot you are holding.
      Loot
    : "none" #Example: "bettereggs.loot"
      #Permission required to count blocks if player is flying. (Applies only if "Allow-flight" is set to true)
      Fly
    : "none" #Example: "bettereggs.fly"

    Updates
    :
     #Auto update configuration? Enabling will delete comments.
      Auto-update-configuration
    : true
      #Check for updates? Recommended to keep it enabled.
      Check-updates
    : true
      #Notify updates when player with permission joins the server?
      Notify-updates
    : true
      #Permission required to receive update message.
      Permission
    : "bettereggs.update"
      #Message to send when update is found.
      Message
    : "&3[BetterBackpacks] &eA new update has been found! You are using version {CURRENT}. Download version {NEW} here &c{LINK}"
     
    eggs.yml
    Code (YAML):
    Eggs:
      food-egg
    :
        Enabled
    : true
        Blocks
    : 350
        Min-amount
    : 1
        Max-amount
    : 2
        Messages
    :
          No-permission
    : '&cYou are not allowed to open this egg :('
          Open-nothing
    : '&aYou opened a food egg. You didn''t find anything :('
          Open-reward
    : '&aYou opened a food egg and received some rewards. Check the floor just in case!'
        Not-ready
    :
          Lore
    :
         - '&7This is a Food Egg.'
          - '&r'
          - '&7Total blocks
    : &f{TOTAL}'
          - '&7Remaining blocks
    : &f{REMAINING}'
          Displayname
    : '&d&lFood Egg &7({REMAINING})'
        Name
    : Food Egg
        Ready
    :
          Lore
    :
         - '&6Egg is ready to hatch!'
          - '&r'
          - '&7Blocks walked
    : &f{TOTAL}'
          Displayname
    : '&d&lFood Egg &7(Ready to hatch)'
        Textures
    :
       - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjEzYTI3OGFlOTkwMmY3YzE1YmYzOTY5OWM2YTE0MjYxNDI1Y2NhZmVkYWIyNGZhNmE4NTljNDE1YTMwNWQ0YSJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDA5NTU4N2FhNTY1ODM3N2VmYmU1ZmY3ZGFmNTRmZWZmZTZkNWY2YmRhYmEzZGMxOWVlN2QyZjE4NjI2MjQ3ZCJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWQ1MGZlMTVhMjEyODY0OGM3YmQxYTk4NWMzMjBiYWRiZmRmNmViYjQ2ODJjYWM0OTEyOTA5NjIwY2NmIn19fQ==
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDYwZjY5NTU1N2YxYzEzZTNlNjJlNWNhMDVmYWY0YTczMGRiNzcyYzhmYWIxZjA3MmE3MzI5N2YyMCJ9fX0=
        Gui-displayname
    : '&d&lFood Egg'
        Permission
    : bettereggs.egg.food-egg
        Items
    :
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : COOKED_CHICKEN
          amount
    : 19
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : COOKED_PORKCHOP
          amount
    : 20
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : CAKE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : COOKIE
          amount
    : 18
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : BAKED_POTATO
          amount
    : 17
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : APPLE
          amount
    : 15
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : COOKED_BEEF
          amount
    : 14
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : BREAD
          amount
    : 19
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : GOLDEN_APPLE
          amount
    : 5
        Commands
    :
       #Format "DISPLAY|COMMAND" Available placeholders here are: {PLAYER} replaced with player name.
        #{WORLD} replaced with player world name. {BLOCKS} replaced with amount of blocks the egg required to hatch.
        - "&a$1,000|money add {PLAYER} 1000"
        Auto-hatch
    : true
      iron-egg
    :
        Enabled
    : true
        Blocks
    : 600
        Gui-displayname
    : '&f&lIron egg'
        Min-amount
    : 1
        Max-amount
    : 2
        Messages
    :
          No-permission
    : '&cYou are not allowed to open this egg :('
          Open-nothing
    : '&aYou opened a iron egg. You didn''t find anything :('
          Open-reward
    : '&aYou opened a iron egg and received some rewards. Check the floor just in case!'
        Not-ready
    :
          Lore
    :
         - '&7This is a Iron Egg.'
          - '&r'
          - '&7Total blocks
    : &f{TOTAL}'
          - '&7Remaining blocks
    : &f{REMAINING}'
          Displayname
    : '&f&lIron Egg &7({REMAINING})'
        Name
    : Iron Egg
        Ready
    :
          Lore
    :
         - '&6Egg is ready to hatch!'
          - '&r'
          - '&7Blocks walked
    : &f{TOTAL}'
          Displayname
    : '&f&liron egg &7(Ready to hatch)'
        Textures
    :
       - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWFmOTUxMDUwY2NkMWM3M2ZlZTRlMTM4Yzk1M2E0MmYwYzA3OGE5MmVkOGU2OTI2OTZiZjRhNjM5MTIyMDhkYyJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzk4MmIzYmRmZTJmMGZjMDQ0MzliMGJmMGU3OWZiZDg2OWE0NmZmNzMzOTZkMzQ1OWE1YzdhNTE4NTdiMzMyNCJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWYwMjU2NGM0YzI5NjM1MGUxZGE5MzJlYTZiZDc5ZjFlYzAzZGExM2Y0YTQ5ZTliODBmOTZjOWJiOTAzZGNhZiJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTRmOTlmNTA5YTRmMTU3NjM4YzNhOWM3NzViZmIzZDdiNjJlNzgxZTYxMjQxMDhmNjQ2NTExNWY4YTQxMmI1ZiJ9fX0=
        Auto-hatch
    : true
        Permission
    : bettereggs.egg.iron-egg
        Items
    :
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_HELMET
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_CHESTPLATE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_LEGGINGS
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_BOOTS
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_SWORD
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_AXE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_PICKAXE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_INGOT
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_BLOCK
        Commands
    : []
      diamond-egg
    :
        Enabled
    : true
        Name
    : Diamond Egg
        Min-amount
    : 1
        Max-amount
    : 2
        Gui-displayname
    : "&b&lDiamond Egg"
        Not-ready
    :
          Displayname
    : "&b&lDiamond Egg &7({REMAINING})"
          Lore
    :
         - "&7This is a Diamond Egg."
          - "&r"
          - "&7Total blocks
    : &f{TOTAL}"
          - "&7Remaining blocks
    : &f{REMAINING}"
        Ready
    :
          Displayname
    : "&b&lDiamond Egg &7(Ready to hatch)"
          Lore
    :
         - "&6Egg is ready to hatch!"
          - "&r"
          - "&7Blocks walked
    : &f{TOTAL}"
        Permission
    : "bettereggs.egg.diamond-egg"
        Textures
    :
       - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYmZmODhhMjVjNGIxMTRlODJhYmI1Y2U5OGNjZDViMmIxODZlY2Q2OGZkOGFiZjg1MjcwNjczYTNlOGI5MGE5In19fQ==
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzM3NDZhZWMyNTg4NzQ4MGVlZDE3MzMwYzQzZWFiY2M1NDljMmJiOGNlNGYxNWJhM2M2NGE1MmIwNzE2NmVmIn19fQ==
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTI0MGExYTZlMjNjYjc4N2Q0ZGFmMTMzYWIyYzhiOWFiYWM0ZWZiODFlNzM5Y2FlYzU4YjNlOGVhNTQ5ODcifX19
        Blocks
    : 1000
        Auto-hatch
    : true
        Messages
    :
          No-permission
    : "&cYou are not allowed to open this egg :("
          Open-nothing
    : "&aYou opened a diamond egg. You didn't find anything :("
          Open-reward
    : "&aYou opened a diamond egg and received {AMOUNT} rewards. Check the floor just in case!"
        Items
    :
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_HELMET
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_CHESTPLATE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_LEGGINGS
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_BOOTS
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_SWORD
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_AXE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_PICKAXE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_BLOCK
        Commands
    : []
      legendary-egg
    :
        Enabled
    : true
        Name
    : Legendary Egg
        Min-amount
    : 1
        Max-amount
    : 1
        Blocks
    : 1500
        Messages
    :
          No-permission
    : '&cYou are not allowed to open this egg :('
          Open-nothing
    : '&aYou opened a Legendary Egg. You didn''t find anything :('
          Open-reward
    : '&aYou opened a Legendary Egg and received some rewards. Check the floor just in case!'
        Not-ready
    :
          Lore
    :
         - '&7This is a Legendary Egg.'
          - '&r'
          - '&7Total blocks
    : &f{TOTAL}'
          - '&7Remaining blocks
    : &f{REMAINING}'
          Displayname
    : '&6&lLegendary Egg &7({REMAINING})'
        Ready
    :
          Lore
    :
         - '&6Egg is ready to hatch!'
          - '&r'
          - '&7Blocks walked
    : &f{TOTAL}'
          Displayname
    : '&6&lLegendary Egg &7(Ready to hatch)'
        Textures
    :
       - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWY1NWM1MDVkN2YwMDEzNWI1ZjUyMjViNzVjZDkyZWQxMjIwMWNjOTVjNDFkZWVkOGE3N2RhOGZkNmI3Yjk2MyJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTg5ZDY1YWM3NTg2YTI3YzBjNWQyMjZmZDYzY2I5ODliZWU3YzYyYTRlODBkZDFmMWFlYTJlMjJjMTYxMWNkZiJ9fX0=
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOTRmMDNhNzQ2YWFiZGMzYWJjNTE1OGVhYTEwNDY2YTlmYTc3MGMyYmIxZDRkYWI3NjQ0ODQzOThlOWY4ZDQifX19
        - eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjk2OTIzYWQyNDczMTAwMDdmNmFlNWQzMjZkODQ3YWQ1Mzg2NGNmMTZjMzU2NWExODFkYzhlNmIyMGJlMjM4NyJ9fX0=
        Gui-displayname
    : '&6&lLegendary Egg'
        Permission
    : bettereggs.egg.legendary-egg
        Items
    :
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : NETHER_STAR
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_BLOCK
          amount
    : 5
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : EMERALD_BLOCK
          amount
    : 4
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_BLOCK
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : BEACON
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : IRON_BLOCK
          amount
    : 4
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : GOLD_BLOCK
          amount
    : 4
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_ORE
          amount
    : 3
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : EMERALD_ORE
          amount
    : 3
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : DIAMOND_ORE
          amount
    : 2
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : EMERALD_ORE
          amount
    : 2
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : SADDLE
        - ==
    : org.bukkit.inventory.ItemStack
          v
    : 2578
          type
    : GOLDEN_APPLE
          amount
    : 32
        Auto-hatch
    : true
        Commands
    :
       - "&a$10,000|money add {PLAYER} 10000"
        - "&a$5000|money add {PLAYER} 5000"
     
    [​IMG]
    Command auto complete.
    [​IMG]
    [​IMG]

    Eggs status command.
    [​IMG]

    Give command with custom block specified.
    [​IMG]

    Egg hatched. (Auto-hatch option enabled)
    [​IMG]
    Can't see the gif? Click here

    Egg hatched in off hand. (Auto-hatch option enabled)
    [​IMG]
    Can't see the gif? Click here

    Custom amount of blocks required to hatch + Real time item update.
    [​IMG]
    Can't see the gif? Click here

    View egg loot.
    [​IMG]

    View commands in egg loot with displayname.
    [​IMG]

    Edit egg loot in game. BETA!
    [​IMG]

    [​IMG]
    Installing the plugin in your server:
    • Download the plugin from SpigotMC.org
    • Copy the jar file into you plugins folder.
    • Restart the server.
    • Edit what you want in configuration files.
    • Restart the server.
    [​IMG]
    Permissions are configurable in configuration files.

    /bettereggs loot - Check egg item loot.
    Permission:
    none (Configurable)

    /bettereggs create <egg-identifier> - Create new egg with default options.
    Permission:
    bettereggs.admin

    /bettereggs loot <egg-identifier> - Check egg loot
    Permission:
    bettereggs.admin

    /bettereggs edit <egg-identifier> - Edit egg loot.
    Permission:
    bettereggs.admin

    /bettereggs give <player> <egg-identifier> <blocks> - Give custom egg to player.
    Permission:
    bettereggs.admin

    /bettereggs toogle <egg-identifier> - Toggle egg status.
    Permission:
    bettereggs.admin

    /bettereggs eggs - Check eggs status
    Permission:
    bettereggs.admin

    /bettereggs reload - Reload some configuration. (Restart recommended)
    Permission:
    bettereggs.admin

    [​IMG]
    None yet. You can send me your reviews :D

    [​IMG]
    This is a simple plugin, i don't think it requires more features.
    However if you consider your suggestion should be added, let me know in discussion tab.

    [​IMG]
    Let us know if your server is using it! ;)

    [​IMG]
    1) Why is this BETA? That means it has bugs?
    Answer:
    No, plugin should not have bugs. I use BETA because I like the word, I guess.

    2) I like your plugins. Can I suggest you cool ideas for new ones?
    Answer:
    Sure, join my discord server and let me know. I'll evaluate the suggestion
    and decide if I wanna code it or not. Making a suggestion doesn't mean it will be made.

    3) How many eggs I can create?
    Answer:
    Create as many as you want.

    4) What items can I add to eggs loot?
    Answer:
    You should be able to add any item you want. However it's not recommended to add items with long NBT tags.

    5) Commands work from console?
    Answer:
    Most of them yes. Some of them don't, for example, how would you open an inventory from console in /bettereggs loot

    6) Why is this free? You know it could be premium right?
    Answer:
    Why not? I know it could be premium.

    7) You plan to add more features?
    Answer:
    More features shouldn't be needed. I mean, I added everything I think it could be necessary including an API for developers.
    That doesn't mean I won't add features. However it must be a good one and of course it must be possible. (Suggest a feature in my discord server)

    8) What's that thing called Developer API?
    Answer:
    If you are not a developer, you won't be able to use it. It allows other plugins to use methods in the plugin to create eggs with
    custom textures, custom required blocks to hatch, random eggs, cancel egg hatchings and more things.

    9) How to use the plugin after I install it?
    Answer:
    The plugin is ready to use with some default eggs.

    10) How to create new eggs then?
    Answer:
    Use /bettereggs create the-name-you-want-egg
    Use /bettereggs edit the-name-you-want-egg
    Add the items you want in that inventory and close it to save.
    Use /bettereggs toggle the-name-you-want-egg
    Egg will be enabled. You can use now /bettereggs give YourName the-name-you-want-egg 10
    You'll receive your new egg that needs only 10 blocks to hatch so you can hatch it in seconds.
    Make sure the loot is correct and edit the new egg in eggs.yml to change name, textures and more options.
    To apply changes use /bettereggs reload
    Ready to use.

    11) Can i post this in mcbbs.net?
    Answer:
    No.

    12) Are you sure?
    Answer:
    Yes, I'm sure. You are not allowed to post it.

    13) Help me, it's not working in my server!
    Answer:
    Before reviewing the resource. Make sure you have installed all dependencies.
    It the error persists. Paste startup console log in https://sourceb.in/ and post it in discussion tab or join my server.

    [​IMG]
    NBT API - This plugin works with NBT Tags.

    [​IMG]
    Access the API package:
    com.alonsoaliaga.plugin.api.Plugin
    Code (Java):
    Available methods:
    List<String> getAvailableEggs()
    > Get available list of eggs identifiers.
    ItemStack getEgg(String eggIdentifier)
    > Get egg with identifier. Returns null if identifier is not valid.
    ItemStack getEgg(String eggIdentifier, int blocks)
    > Get egg with identifier and required blocks to hatch. Returns null if identifier is not valid.
    ItemStack getEgg(String eggIdentifier, int blocks, String texture)
    > Get egg with identifier, required blocks and custom texture. Returns null if identifier is not valid.
    ItemStack getEgg(String eggIdentifier, String texture)
    > Get egg with identifier, default blocks and texture. Returns null if identifier is not valid.
    List<ItemStack> getEggs(String eggIdentifier, int amount)
    > Get amount of eggs with identifier. Returns empty list if identifier is not valid.
    ItemStack getRandomEgg(int blocks)
    > Get random egg with blocks required. Returns null if there aren't available eggs.
    ItemStack getRandomEgg(String texture, int blocks)
    > Get random egg with texture and blocks. Returns null if there aren'
    t available eggs.

    Available events:
    EggHatchEvent
    > When egg is hatched. Can be when right clicked or it hatchs automatically because of configuration.
    EggHatchingEvent
    > When egg is hatching. When player moves and it reduces required blocks for an egg.
    If you find any bugs, errors or want to request a feature.
    Join my discord or use our issue tracker.

    Review section is not place to report errors.


    [​IMG]


      • None yet! :)
    [​IMG]
    By downloading this resource you agree all following terms and conditions:
    • You are not permitted to redistribute the plugin in any form, including as a part of any software package.
    • You are not permitted to decompile or modify the plugin in any form.
    • You are not permitted to claim this resource as your own creation.

    [​IMG]
    [​IMG]
    [​IMG]
    [​IMG]

Recent Reviews

  1. agatadad
    agatadad
    5/5,
    Version: 0.6-BETA
    siempre lo dije tus plugins son lo mejor en mi servidor los tengo estupendo , sige asi
    1. AlonsoAliaga
      Author's Response
      Me alegra que te gusten ^^

      Gracias por la review!
  2. _GilsJunior_
    _GilsJunior_
    5/5,
    Version: 0.3-BETA
    Fast support and quick bug fixes! Overall nice plugin. Would recommend this plugin.
    1. AlonsoAliaga
      Author's Response
      Glad to hear you enjoy the plugin, hope your players too.
      Check out our other plugins, you might like them :D

      Thanks for your review!
  3. Yosukp
    Yosukp
    5/5,
    Version: 0.1-BETA
    just tested the plugin, seems to be working fine
    i'm waiting more plugins from you, you made me save some money xDD
    1. AlonsoAliaga
      Author's Response
      Glad to hear that. More plugins coming soon :D

      Thanks for your review!
  4. savenx
    savenx
    5/5,
    Version: 0.1-BETA
    Awesome, as always!
    ============================================================
    1. AlonsoAliaga
      Author's Response
      Thanks for the kind words. Don't forget to report if you have any issue with the plugin in our discord server :D

      Thanks for your review!