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

Adds Hog, Greed, and Fiery effect #5

Merged
merged 5 commits into from
Mar 2, 2024
Merged

Adds Hog, Greed, and Fiery effect #5

merged 5 commits into from
Mar 2, 2024

Conversation

langedev
Copy link
Collaborator

@langedev langedev commented Mar 2, 2024

No description provided.

JuliaLange and others added 5 commits March 1, 2024 23:54
Hog effect causes item use ticks to skip on food items. This was the only way I could find to implement it, as you don't have access to enchantments on Item or ItemStack, and intercepting calls to ItemStack.getMaxUseTime proved fruitless.

The Every (5 - HOG_LEVEL) ticks are skipped, meaning at HOG_LEVEL 3 every other tick is skipped, halfing the duration of eating.
@langedev langedev merged commit d066e44 into main Mar 2, 2024
2 checks passed
@langedev langedev deleted the bone_enchantments_R1 branch March 2, 2024 21:59
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.

1 participant