Skip to content

Commit

Permalink
add the ability to make items glow in Items: section
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Jul 23, 2024
1 parent ec5b506 commit b6b71c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
41 changes: 4 additions & 37 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,6 @@
### Added:
- Ability to define spawner type in prizes
- Ability the ability to make items glow in `Items`
```yml
'1':
# The name of the item to display in the gui.
DisplayName: "<green>Creeper Spawner"
# The enchants to display in the gui.
DisplayItem: "spawner"
# Prize settings
Settings:
# The custom model data of the item, -1 is disabled.
Custom-Model-Data: -1
# The type of mob for the spawner.
Mob-Type: creeper
# The amount to display in the gui.
DisplayAmount: 1
# The max range i.e. 15/100 = 15% chance to win.
MaxRange: 100
# The chance to win i.e. 15%
Chance: 23
Items:
- 'Item:spawner, Mob:creeper'
```
### Changes:
- Play knockback/sounds if they don't have the required keys.
- Removed runtime dependency loader.
#### Cosmic Crate:
- Cosmic Crate was changed back in March for the calculation of tiers to be handled when you open the inventory, so that when picking a mystery crate. The choice would actually matter!
- It has been brought to my attention of being able to skimp it using client side mods. this has been addressed, the mods will no longer be able to skimp it by seeing item differences.
- The calculation still happens but, the picks are stored internally to the player's uuid in a cache which clears when the player quits, the inventory closes or the crate task ends for X reason.
### Fixed:
- Issue with file not found on first install.
- Issue where examples folder wasn't being created properly.
- Issue with shields not getting color or patterns.
- `Wonder` crate type never playing the cycle sound.
- `Wheel` crate type playing the stop sound twice.
- `Wheel` crate type not playing the cycle sound as most people have the client music muted.
Items:
- 'Item:spawner, Glowing:true'
```
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

val buildNumber: String? = System.getenv("BUILD_NUMBER")

rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "3.5.8"
rootProject.version = if (buildNumber != null) "${libs.versions.minecraft.get()}-$buildNumber" else "3.5.9"

val isSnapshot = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ public static ItemBuilder convertString(String itemString, String section) {
itemBuilder.setEntityType(type);
}
}
case "glowing" -> itemBuilder.setGlowing(Boolean.valueOf(value));
case "amount" -> {
final Optional<Number> amount = StringUtil.tryParseInt(value);
itemBuilder.setAmount(amount.map(Number::intValue).orElse(1));
Expand Down

0 comments on commit b6b71c8

Please sign in to comment.