-
-
Notifications
You must be signed in to change notification settings - Fork 26
Hapyfromeatgift #1917
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
base: feat/mood
Are you sure you want to change the base?
Hapyfromeatgift #1917
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bro got geeked
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a mechanism to give TARDIS-specific cookies as rewards that can affect a TARDIS's mood when consumed. The implementation uses a mixin to intercept food eating and NBT data to link cookies to specific TARDIS instances.
- Adds a mixin to handle cookie consumption and TARDIS mood modification
- Modifies the sequence registry to create special cookies with TARDIS UUID data
- Updates the mixin configuration to include the new functionality
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
File | Description |
---|---|
src/main/resources/ait.mixins.json | Registers the new mixin class for cookie handling |
src/main/java/dev/amble/ait/registry/impl/SequenceRegistry.java | Creates special cookies with TARDIS UUID and multiplier data as rewards |
src/main/java/dev/amble/ait/mixin/sexygifthapy.java | Implements the mixin to detect cookie consumption and modify TARDIS mood |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
MoodHandler2 mood = new MoodHandler2(); | ||
mood.add(Emotion.Type.CONTENT, data.getFloat("Multiplier")); |
Copilot
AI
Oct 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A new MoodHandler2 instance is created but never applied to the TARDIS. The mood changes will have no effect. You should get the existing mood handler from the TARDIS and modify it, or apply this handler to the TARDIS.
MoodHandler2 mood = new MoodHandler2(); | |
mood.add(Emotion.Type.CONTENT, data.getFloat("Multiplier")); | |
MoodHandler2 mood = tardis.getMoodHandler(); | |
if (mood != null) { | |
mood.add(Emotion.Type.CONTENT, data.getFloat("Multiplier")); | |
} |
Copilot uses AI. Check for mistakes.
im never liding no sleep again im so fucking retarded rn |
ItemStack poppy = new ItemStack(Items.POPPY); | ||
|
||
NbtCompound cookienbt = cookie.getOrCreateNbt(); | ||
// NbtCompound poppynbt = poppy.getOrCreateNbt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All this commented out code (this and some lines below) was probably just to limit the TARDIS to cookies during development.
Re-enable them again by un-commenting the lines related to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah im not finished with it still need to do the poppy and it was 8am tired af i didnt wanna do it ill do it it when i get back from hanging out with some friends
Co-authored-by: Pan <[email protected]>
also this isnt ready yet still need to do the poppy, but ill do that when i get back |
There was already an existing mixin for LivingEntity, which made the extra mixin redundant. |
don't make it a specific item make a tag for item so then datapack/addon devs can do whatever they want with it |
you do it then |
no its your pull |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tags please kind sir
and it isnt that hard to do |
About the PR
Why / Balance
Technical details
Media
https://media.discordapp.net/attachments/739455473476042844/1421915599042379866/temp_image_D7E59F2F-4905-4DF4-8577-2FB9770AB08E.webp?ex=68e0b458&is=68df62d8&hm=324e7487ed2c25c0b7d9758d3971487d4e068564504b0d1570871a4a25f79cde&=&format=webp&width=1188&height=1155
Requirements
Breaking changes
Changelog