Open
Conversation
jurrejelle
reviewed
Sep 7, 2025
Contributor
jurrejelle
left a comment
There was a problem hiding this comment.
Very quick review before I have to go do other things, these are my initial thoughts
src/main/java/com/gregtechceu/gtceu/core/mixins/ItemStackMixin.java
Outdated
Show resolved
Hide resolved
Contributor
|
Some thoughts I had laid out in the discord, ramble style, that I'd like to document here:
|
# Conflicts: # src/main/java/com/gregtechceu/gtceu/api/blockentity/MetaMachineBlockEntity.java
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Spoilage yay!
Added API to modify item outputs and read item inputs in recipe modifiers.
Also made an event that fires just before a machine is registered to allow modifying it's parameters from addons (most notably add recipe modifiers)
Implementation Details
Stores the creation tick of a spoilable item in its nbt, thus bypassing the need to actively tick it.
Should be noted that the item has to be updated at least once after it finished crafting for it to start spoiling (done by updating items inserted into
CustomItemStackHandler)Basically everything is done via a mixin into
ItemStacklolsDoesn't actually make any items spoilable, only adds the functionality to do so.
Outcome
GLEBA