-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [feat] Initial work on weapon leveling & item attributes * Revert some changes - Revert build.gradle - Revert gradle.properties - Remove asserts from ItemStackMixin.java - Revert some lines in ItemStackMixin.java * [feat] XP increases on kill - Weapon XP increases by a value specified in the config when a mob is killed - Moved XP from an attribute to NBT * [feat] Rudimentary item levelling * [feat] Rudimentary armour levelling * Changes to tooltip colouring * [feat] Improve levelling config * [fix] Add back accidentally removed translation key * [feat] Implement percent damage reduction * [feat] Items and weapons in loot tables can generate with a level - Range they can generate in is different based on dimension - Non-Vanilla dimensions follow the overworld range * [fix] Remove TODO commment --------- Co-authored-by: naomi <[email protected]>
- Loading branch information
1 parent
a3ae2a3
commit b691a03
Showing
13 changed files
with
522 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.bibireden.playerex.ext | ||
|
||
import net.minecraft.world.item.ItemStack | ||
|
||
var ItemStack.level: Int | ||
get() = this.orCreateTag.getInt("Level") | ||
set(value) = this.orCreateTag.putInt("Level", value) | ||
|
||
var ItemStack.xp: Int | ||
get() = this.orCreateTag.getInt("Experience") | ||
set(value) = this.orCreateTag.putInt("Experience", value) |
Oops, something went wrong.