Skip to content

Commit

Permalink
Added randomTableBonus
Browse files Browse the repository at this point in the history
  • Loading branch information
LLytho committed Jun 6, 2024
1 parent 506b1fd commit 6cc6873
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning].
## [Unreleased]
- /

## [2.12.0] - 2024-06-06

### Added

- Added `randomTableBonus(enchantment, chances)` for vanillas `table_bonus` condition

## [2.11.0] - 2023-02-11
### Added
- Added `LootEntry.of("#tag")`, `LootEntry.of("@modid")` to select a random entry from a tag or modid.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ default B randomChanceWithEnchantment(@Nullable Enchantment enchantment, float[]
return addCondition(new MainHandTableBonus(enchantment, chances));
}

default B randomTableBonus(Enchantment enchantment, float[] chances) {
return addCondition(BonusLevelTableCondition.bonusLevelFlatChance(enchantment, chances));
}

default B biome(Resolver... resolvers) {
List<ResourceKey<Biome>> biomes = new ArrayList<>();
List<TagKey<Biome>> tagKeys = new ArrayList<>();
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ enableAccessWidener = true
modPackage = com.almostreliable.lootjs
modId = lootjs
modName = LootJS
modVersion = 2.11.0
modVersion = 2.12.0
modAuthor = AlmostReliable
modDescription = Modify global loot drops through KubeJS.

Expand All @@ -23,7 +23,7 @@ fabricLoaderVersion = 0.14.21

# Project Dependencies
parchmentVersion = 2023.06.26
kubejsVersion = 2001.6.4-build.109
kubejsVersion = 2001.6.4-build.120


# Github
Expand Down

0 comments on commit 6cc6873

Please sign in to comment.