Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(item): Rewrote the entire library #32

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

BPR02
Copy link
Contributor

@BPR02 BPR02 commented Jul 9, 2023

  • Rewrote code to be more readable
  • Documented the code
  • Optimized functionality
  • Added a feature to prevent complete destruction of the item
  • Fixed some bugs
  • bumped version to 0.3.0 (breaking, but still zero major)

BPR02 added 2 commits July 9, 2023 02:49
- Rewrote code to be more readable
- Documented the code
- Optimized functionality
- Fixed some bugs
accidentally forgot to change the patch to 0
@BPR02
Copy link
Contributor Author

BPR02 commented Jul 9, 2023

This has a breaking change: I renamed the public API calls from #smithed.item:durability/damage/helmet to #smithed.item:durability/damage/head, /chestplate->/chest, /leggings->/legs, and /boots->/feet. This was done to reflect the rest of the code, and open up the possibility for bolt to reduce repetition in the source code.

@RitikShah
Copy link
Collaborator

Should this be a draft PR still?

@BPR02 BPR02 marked this pull request as draft July 10, 2023 17:35
@BPR02
Copy link
Contributor Author

BPR02 commented Jul 10, 2023

Should this be a draft PR still?

Yeah, Coppertine is doing some bolt work

BPR02 and others added 3 commits August 4, 2023 11:36
- add in-code documentation to how the lore builder works
- use `smithed.item` scoreboard instead of `smithed.data`
- made "Unbreakable" lore consistent with vanilla (items are unbreakable if `Unbreakable` is a non-zero numeric tag)
- fixed attribute paths not being versioned
- removed empty function
- fix unbreakable check to only allow numeric tags (int, short, long, byte)
- remove unnecessary xp scoreboards
@BPR02 BPR02 marked this pull request as ready for review August 5, 2023 17:40
@RitikShah
Copy link
Collaborator

RitikShah commented Nov 2, 2023

@BluePsychoRanger i realize this PR has been stale for a bit but what exactly is the state of this again? i see that it's ready for review, should I just look thru and merge?

CC @asdru22

@BPR02
Copy link
Contributor Author

BPR02 commented Nov 2, 2023

This PR is ready for review then merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants