Tags
Creators
Details
2.4
Compatibility
Changes
Changelog for 2.4
- I added an in-game Crate Editor, now you can edit the crates without touching the json files.
- I added editors for all the rewards formats:
item,command,item_pack,command_pack,item_random,command_random. - I added a Reward Limits system, rewards can be removed from the pool per player after they win them.
- I added a claim limit per reward, so one reward can be won 1, 2, 3... times per player.
- The preview GUI is now per player, it can hide the claimed rewards or show them as "Claimed" and the chances are recalculated with the rewards that the player can still win.
- I added 2 options for when a player already owns every reward from a crate:
blockorfallback. - I added a Milestones system, example: every 50 openings of a crate the player gets a guaranteed reward.
- I added a Milestones button in the preview GUI with the progress of the player.
- I added Holograms for the crates (needs the
HoloDisplaysmod installed, without it the holograms are just ignored). - I added a Crate Rotation system, one placed crate can change between multiple crates on a timer.
- I added 3 new animations for the crates, the ids are
pokeball,pulseandholy_sword. - I added a new command so the players can send virtual keys to other players.
- I added new commands, permissions, messages and placeholders for the new systems.
- I changed the default crate to
ExampleCrate, now it has one example of every reward format. - I reworked the SQLite / MySQL / MariaDB adapters.
/crate reloadnow rebuilds the holograms too.- Old crates configs still work, the new tabs are added automatically and everything new comes disabled in the crates you already have (holograms, reward limits, milestones and rotation).
Crate Editor
- Command:
/crate editor - Permission:
crate.editor
From the editor you can change: general settings, key, open cost, animation, idle particles, hologram, rotation, rewards, reward limits and milestones. Everything is saved when you click, no reload needed.
Rewards Editor
- Add, delete, duplicate and move rewards.
- Every format has its own editor (weight, display item, messages, required free slots, claim limit).
item_pack/command_pack-> list editor for the items / commands of the pack.item_random/command_random-> list editor for the entries with weight and chance of every entry.- Commands and long messages are written in chat, so there is no limit of characters like in the anvil. Write
cancelto go back. - If a reward has an unknown format, the editor lets you convert it to a supported format.
Reward Limits
New tab in the crate config:
"rewardLimits": {
"preventDuplicates": false, // - true = every reward can be won only one time per player.
"hideClaimedInPreview": true, // - Hide the claimed rewards in the preview GUI.
"claimedDisplayItem": {
"enabled": false, // - true = show the claimed rewards with this item instead of hiding them.
"material": "minecraft:gray_dye",
"displayname": "&8%reward% &7(Claimed)",
"lore": [
"&cYou already own this reward."
],
"customModelData": null,
"enchantEffect": false
},
"emptyPoolAction": "block", // - Formats | block | fallback |
"fallbackPrizes": [
{
"type": "command",
"weight": 1.0,
"command": "give %player% minecraft:diamond 1",
"displayItem": {
"material": "minecraft:diamond",
"amount": 1,
"displayname": "&bConsolation Reward",
"lore": [
"&7Given when you already own every reward"
],
"enchantEffect": false
},
"messageGlobal": false,
"messagePlayer": true,
"messageCustom": false,
"broadcastPlayer": "&aYou already own every reward from &b%cratename%&a, so you received &6%prizes%&a!"
}
]
}
block-> the crate can't be opened and the key / money / item is NOT consumed.fallback-> the crate opens and gives a reward fromfallbackPrizes(works with all the rewards formats).
Claim limit per reward
New values in every reward:
"rewardId": "a1b2c3d4",
"claimLimit": 2
claimLimit-> how many times a player can win that reward.0= unlimited. If the value is missing the reward uses the crate setting (preventDuplicates).rewardId-> is generated automatically for every reward, don't change it or the players will lose the claims of that reward. The same crate config gives the same ids on every server, so it works with multiple servers on the same database.
Milestones
New tab in the crate config:
"milestones": {
"enabled": false,
"entries": [
{
"id": "every_50", // - Unique ID of the milestone.
"every": 50, // - Openings needed.
"repeat": true, // - true = every 50 openings | false = only one time at 50 openings.
"mode": "guaranteed", // - Formats | guaranteed | bonus |
"rewardIds": [], // - Rewards from the crate (by "rewardId") that can be given by the milestone.
"rewards": [
{
"type": "command",
"weight": 1.0,
"command": "give %player% minecraft:nether_star 1",
"displayItem": {
"material": "minecraft:nether_star",
"amount": 1,
"displayname": "&6Milestone Reward",
"lore": [
"&7Guaranteed milestone reward"
],
"enchantEffect": true
},
"messageGlobal": false,
"messagePlayer": false,
"messageCustom": false
}
],
"commands": [], // - Extra commands executed when the milestone is reached.
"resetOnNaturalWin": false, // - true = the progress is reset if the player wins a reward from "rewardIds" before the milestone.
"messagePlayer": "&6Milestone reached! &e%opens% &6openings of &b%cratename%&6: &f%prizes%",
"messageGlobal": ""
}
]
}
guaranteed-> the opening that reaches the milestone gives the milestone reward instead of a random one.bonus-> the player gets the normal reward of the crate and the milestone reward as extra.- The progress is saved per player and per crate, you can have multiple milestones in the same crate.
- Placeholders for milestone messages and commands:
%player%,%cratename%,%crate%,%opens%,%milestone%,%prizes%.
Milestones button in the preview GUI
New tab in config/shadowcrates/menu_preview.json:
"milestoneInfo": {
"enabled": true,
"slot": 4,
"material": "minecraft:nether_star",
"name": "&6Milestones",
"customModelData": null,
"enchantEffect": true,
"lineFormat": "&7Every &e%every% &7openings: &f%progress%&7/&f%every% &8(&7%remaining% left&8)",
"lineFormatOnce": "&7At &e%every% &7openings: &f%progress%&7/&f%every% &8(&7%remaining% left&8)",
"lineFormatCompleted": "&7At &e%every% &7openings: &aCompleted"
}
Holograms
New tab in the crate config (needs the HoloDisplays mod):
"hologram": {
"enabled": true,
"hideDuringPhysicalAnimation": true, // - Hide the hologram while the crate is playing a block animation.
"yOffset": 2.2, // - Height over the crate.
"viewRange": 24.0,
"updateRate": 20, // - Ticks between updates of the lines.
"billboardMode": "center",
"scaleX": 1.0,
"scaleY": 1.0,
"scaleZ": 1.0,
"rotationX": 0.0,
"rotationY": 0.0,
"rotationZ": 0.0,
"shadow": true,
"seeThrough": true,
"opacity": 1.0,
"backgroundHex": null, // - ex: "#000000"
"backgroundOpacity": 0,
"lines": [
"&6%crate%",
"&aRight Click &7to open",
"&eLeft Click &7to preview"
]
}
- The lines support
&colors, hex<#RRGGBB>and gradients<gradient:#RRGGBB:#RRGGBB>text</gradient>. - Placeholders for the lines:
%crate%,%crate_display%,%crate_id%,%key_name% - Placeholders for rotation:
%base_crate%,%active_crate%,%next_crate%(all with_displayand_id),%rotation_enabled%,%rotation_time_left%,%rotation_time_left_seconds%,%rotation_interval%
Crate Rotation
With this system one placed crate works as other crates from a list and changes on a timer.
Enable the system in config/shadowcrates/config.json:
"crateRotation": {
"enabled": false,
"broadcastOnRotate": false,
"broadcastMessage": "&eCrate &6%base_crate% &eis now rotated to &6%active_crate%&e!"
}
New tab in the crate config:
"rotation": {
"enabled": false,
"interval": "1h", // - Formats | s | m | h | d | ex: "30m", "1h30m", "1d"
"cycleMode": "loop", // - Formats | loop | once |
"crates": [] // - List of crateID's to rotate.
}
loop-> when the list ends it starts again from the first crate.once-> it stops on the last crate of the list.- Placeholders for the broadcast:
%base_crate%,%active_crate%,%next_crate%(all with_display),%rotation_time_left%,%rotation_time_left_seconds%,%interval%
Animations
I added 3 new animations that can be used in animationType:
- Animation:
pokeball - Animation:
pulse(GUI format, works with/crate openand with multiple players) - Animation:
holy_sword
Commands
- Command:
/crate key send <crate> <amount> <player> - Permission:
crate.key.send
Only works with virtual keys.
- Command:
/crate rewards reset <player> <crate> - Command:
/crate rewards reset <player> all - Permission:
crate.rewards.reset - Command:
/crate milestones reset <player> <crate> - Command:
/crate milestones reset <player> all - Permission:
crate.milestones.reset
Messages
New messages in config/shadowcrates/config.json:
"receivedKey": "&aYou received &6%amount% &akey(s) for crate &6%crate%&a!",
"receivedVirtualKey": "&aYou received &6%amount% &avirtual key(s) for crate &6%crate%&a!",
"receivedAllKeys": "&aYou received &6%amount% &akey(s) for each of &e%count% &acrates!",
"receivedAllVirtualKeys": "&aYou received &6%amount% &avirtual key(s) for each of &e%count% &acrates!",
"sentVirtualKey": "&aYou sent &6%amount% &avirtual key(s) for crate &6%crate% &ato &e%player%&a!",
"receivedVirtualKeyFrom": "&aYou received &6%amount% &avirtual key(s) for crate &6%crate% &afrom &e%player%&a!",
"notEnoughVirtualKeysToSend": "&cYou do not have &6%amount% &cvirtual key(s) for crate &6%crate%&c!",
"cannotSendKeysToSelf": "&cYou cannot send keys to yourself!",
"crateKeyTransferVirtualOnly": "&cYou can only send virtual keys for crate &6%crate%&c!",
"allRewardsClaimed": "&cYou have already collected every reward from &6%crate%&c!",
"rewardClaimsReset": "&aReset the claimed rewards of &6%player% &afor crate &6%crate%&a!",
"rewardClaimsResetAll": "&aReset the claimed rewards of &6%player% &afor every crate!",
"rewardClaimsResetMany": "&aReset the claimed rewards of &6%count% players&a!",
"milestonesReset": "&aReset the milestone progress of &6%player% &afor crate &6%crate%&a!",
"milestonesResetAll": "&aReset the milestone progress of &6%player% &afor every crate!",
"milestonesResetMany": "&aReset the milestone progress of &6%count% players&a!"
Placeholders
%shadowcrates:rewards_claimed_<crate>%
➜ Shows how many rewards of that crate the player already claimed.
%shadowcrates:rewards_remaining_<crate>%
➜ Shows how many rewards of that crate the player can still win.
%shadowcrates:milestone_progress_<crate> <milestone>%
➜ Shows the openings of the player for that milestone. Without <milestone> it uses the first milestone of the crate.
Example: %shadowcrates:milestone_progress_pokemon every_50%
%shadowcrates:milestone_remaining_<crate> <milestone>%
➜ Shows how many openings are left to reach that milestone.
%shadowcrates:rotation_active_<crate>%
➜ Shows the name of the crate that is active now in the rotation.
%shadowcrates:rotation_next_<crate>%
➜ Shows the name of the next crate in the rotation.
%shadowcrates:rotation_time_left_<crate>%
➜ Shows the time left until the next rotation.
Format: 1h30m
%shadowcrates:rotation_time_left_seconds_<crate>%
➜ Shows the time left until the next rotation in seconds.
%shadowcrates:rotation_enabled_<crate>%
➜ Returns true / false if the rotation is enabled for that crate.
%shadowcrates:most_opened_crate% / %shadowcrates:most_opened_count%
➜ Shows the crate that the player opened the most and how many times.
%shadowcrates:least_opened_crate% / %shadowcrates:least_opened_count%
➜ Shows the crate that the player opened the least and how many times.
%shadowcrates:total_virtual_keys%
➜ Shows how many virtual keys the player has in total.
%shadowcrates:total_stored_rewards%
➜ Shows how many rewards the player has stored in total.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:f136wypQ:aroIABXM"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:f136wypQ:aroIABXM"
}

