
Crazy Crates 4.9.5
Add unlimited crates to your server with 10 different crate types to choose from!
- Fixed an issue with filtering tiered prizes by using the correct symbol!
- This prevented properly getting prizes, #842
- Fixed an issue with the damage data component being applied to the ItemStack
- Fixed an issue with migrating to the new Items section where the integer is a string
- Added back /cc set <crate> because why not?
- Fixed another issue with files being overwritten which caused files like
locations.yml
ordata.yml
to be replaced.
This build has a data loss bug in it, Please do not use it.
- Fixed an issue with example crate files generating on startup in the
crates
folder
This build has a data loss bug in it, Please do not use it.
- Added the ability to use
Item Models
which was introduced in 1.21.4- This acts as replacement to
Custom-Model-Data
wherever you see it, It's up to the plugin/resource pack you use to find the new id.- oraxen:emerald_helmet
- nexo:emerald_helmet
- itemsadder:emerald_helmet
- Above are examples of namespace:id.
- This acts as replacement to
PhysicalKey:
# Name of the Key.
Name: "<bold><gradient:#084CFB:#ADF3FD>Wonder Crate Key</gradient></bold>"
# Lore of the Key.
Lore:
- "<gradient:#084CFB:#ADF3FD>A fancy key to open a wonderful crate!</gradient>"
# The item the key is.
Item: "blue_dye"
# The item model, Mojang introduced this in 1.21.4... this replaces custom model data!
# Set this to blank for it to do nothing.
# The format is namespace:id
Model:
# The namespace i.e. nexo
Namespace: ""
# The id i.e. emerald_helmet
Id: ""
# Makes the key look enchanted.
Glowing: true
- Added the ability to display potion effects in item previews
# This is an example of the new crate format.
Crate:
# A list of prizes.
Prizes:
"1":
# The name of the item to display in the gui.
DisplayName: "<gradient:light_purple:dark_purple>Witch's Potion"
# The item to display in the gui.
DisplayItem: "potion"
# The configuration section for potions, minecraft: is not needed in front of the potion.
# A list of potion effects https://jd.papermc.io/paper/1.21.4/io/papermc/paper/registry/keys/MobEffectKeys.html
DisplayPotions:
# This must be the potion name typed exactly as it is, A list of potions linked above.
poison:
# The length of the potion in seconds.
# https://minecraft.wiki/w/Calculators/Tick
duration: 20
# The strength of the potion.
level: 5
absorption:
duration: 30
level: 5
# The amount to display in the gui.
DisplayAmount: 1
# The lower the number, the less likely to win it.
Weight: 1.0
- Custom-Model-Data, or custom-model-data can accept numbers or strings due to recent changes in 1.21.4.
- Fixed the /crates additem command
- /crazycrates debug will tell you no prizes can be won if the item sections are empty, or if there are no prizes.
New Item Format
This is only for the new item format behind a toggle in config.yml
Fixes
- Fixed an issue with items having blank names with the new item format (not the old format)
- This happens only when name is not present in the Items section
Additions
- Added the ability to have multiple potion effects for a potion, or tipped arrows
- Potion effects are measured in seconds, https://minecraft.wiki/w/Calculators/Tick
New Item Format
I've been working on a new format for the Items section as the current one is very restrictive, You can experiment with this by enabling it in your config.yml
- The command /crazycrates migrate -mt NewItemFormat will update all Items section to the best it can.
- The migration is one way, Please be wary of this and take backups.
- Editor-Items should be migrated as soon as possible when you feel like it as this is much more readable, I plan to do much more to expand on the in-game editor since the structure makes such a thing easier.
- The migration is one way, Please be wary of this and take backups.
You can find an example of the Items format linked below
https://github.com/Crazy-Crew/CrazyCrates/blob/main/core/src/main/resources/crates/beta/NewCrate.yml
Fixes
- ItemsAdder blocks were not working with left/right click
- A double message sent to admins when using /crazycrates giveall
- Holograms were not refreshing when using DecentHolograms
- Set the default item plugin option to "None" because it was causing issues
- Fixed a few other issues like ItemStacks not stacking properly
Changes
- Removed an unused config option from the config.yml
- The option this was replaced with has already been moved to fusion.yml previously
- Marked `use-new-permission-system` for removal
- This option is being removed as crazycrates.open.<crate-name> will be the permission going forward.
- Fixed an issue with internal placeholders in the lore of /crates not working.
- Fixed an issue with an error when broadcasting a message
- Added new placeholders without number formatting, https://docs.crazycrew.us/docs/plugins/crazycrates/guides/placeholders
- Simply add _raw to the end of all placeholders including our internal ones like `%keys%` i.e. %keys_raw%
- Fixed an issue with /crates placeholder not being replaced properly
- Added back the old way of breaking crates via shift left click
- Creative Mode is still not required
- Added similar max pull checks, filler checks, and alternative prize checks for tiered prizes
- Fixed an issue with ItemsAdder and CrateInteractEvent
- Fixed an issue with Folia servers
- Fixed issue with furniture plugins due to a pesky boolean.
- Added a new feature for a "rolling name" during animations
Crate:
# Settings related to animations...
Animation:
# This is only when an animation starts.
Name: "Rolling your prize..."
- Cleaned up a bit of the internals for if else checks
- You must run /crazycrates migrate -mt CratesDeprecated
- Add missing commands or arguments to locale files
- Fixed an issue where some border toggles werent being used
- Added -s as an option for /crazycrates give|give-random|giveall
- Slight performance increase when checking physical keys
- fusion.yml rather than config.yml defines what custom items plugin to use now.
- Added a new way to define color/rgb for things like potions, leather_armor etc which should fix the potion#10040:229,164,229 issue trying to stack model data and color/rgb
"8":
# The name of the item to display in the gui.
DisplayName: "<red>Red Potion"
# The item to display in the gui.
DisplayItem: "potion"
# Prize display preview settings
Settings:
# The custom model data of the item, -1 is disabled.
Custom-Model-Data: -1
# The rgb used for the potion.
RGB: '229,164,229'
# Color: RED
# The amount to display in the gui.
DisplayAmount: 1
# The lower the number, the less likely to win it.
Weight: 15.0
# The list of items to win.
Items:
- "Item:potion, RGB:229,164,229" # Color:RED
- Flags has been removed from being a configuration option for Prizes
- If you used Flags, as long as it's not empty. It will simply hide everything, but lore/displayname.
- HideItemFlags: true/false will now function, it will hide all, but lore/displayname.
- hide-tool-tip:true/false is now an option for the `Items` section in Prizes.
- Updated to 1.21.4
- Added direct support for Nexo/ItemsAdder/Oraxen furniture.
- A new config option was added in the config.yml letting you choose which plugin to use.
- If you leave it blank, or as "None"... The plugin will pick whichever it finds first.
- If you find an issue with one of the other plugins, Set the option in the config.yml to `None` then restart your server.
- Updated misleading comment on Prize Commands.
- Added /cc as an alias.
- Updated /crates editor.
- The new format is /crates editor -c/--crate <crate_name> or -e/--exit (if you want to leave the mode), This will put you an editor mode for this specific crate.
- While in this mode, If you right-click a block, You will add a crate location. If you left-click a block, You will remove a crate location.
- You no longer need to shift click, or be in creative mode.