1.2
Compatibility
Changes
๐งฉ Scratch Crate - Patch Notes v1.2
๐ง Bug Fixes & Logical Improvements ๐ฏ Fixed duplicate reward issue Rewards are now only given in the onClose event if the player has actually won. Previously, the reward could be given in both onClick and onClose.
๐ก๏ธ Prevented early close exploit If the player closes the crate before using all attempts without winning, the crate menu is reopened until all 3 scratch chances are used.
๐ Centralized reward detection and distribution The reward is no longer given immediately on click; now it's processed only once during inventory close for consistency and exploit prevention.
๐งผ Reduced code repetition & improved readability Simplified logic flow and cleaned up ItemStack and meta handling for better code maintainability.
๐ Fixed overlapping sound effects The winning sound no longer overlaps or repeats unnecessarily. Sound tasks are properly canceled after execution.
๐ง Improved item match logic for winning condition Previously, incorrect slots could be considered for win checks. Now the system accurately verifies whether the player revealed 2 matching items.
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:KxDELtJV:z46FPRPU"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:KxDELtJV:z46FPRPU"
}

