Change autosmelt to GLM and use datagen. #365
No reviewers
Labels
No labels
Area-Assets
Area-Backend
Area-Conduits
Area-Datapacks
Area-Lang
Area-Mod Compat
Area-Parity
Area-Rendering
Good first issue
MC-1.19.2
MC-1.20.1
MC-1.20.4
MC-1.20.6
MC-1.21
MC-1.21.1
Modtoberfest
P-0-High
P-1-Medium
P-2-Low
Status-Awaiting Response
Status-Behind-Flag
Status-Blocked
Status-Cannot Reproduce
Status-Duplicate
Status-Help Wanted
Status-Incomplete Report
Status-Invalid
Status-Needs LTS Backport
Status-Needs Updating
Status-Stale
Status-To Implement
Status-Triage
Status-Wontfix
Status-Wontmerge
Type-Backport
Type-Bug
Type-Documentation
Type-Enhancement
Type-Question
Type-RFC
Type-Suggestion
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Team-EnderIO/EnderIO#365
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/conduit-autosmelt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #356
Description
Changes to loot modifiers for autosmelt and uses datagen for making them.
Closes #356
Checklist:
Looks good to me, some small comments.
@ -0,0 +29,4 @@protected @NotNull ObjectArrayList<ItemStack> doApply(ObjectArrayList<ItemStack> generatedLoot, LootContext context) {var level = context.getLevel();var recipeManager = level.getRecipeManager();return generatedLoot.stream().map(stack ->I think this is fine, just know we are smelting the drops, not the block itself (not sure this was different before). This means if you mine ore blocks you get the smelted chunks, not the smelted ore block (so more than just smelting the block).
Small thing, these imports aren't needed
@ -0,0 +43,4 @@add("capacitor_loot", new CapacitorLootModifier(new LootItemCondition[]{LootTableIdCondition.builder(new ResourceLocation("chests/simple_dungeon")).build(),This is only for 1 chest? Probably fine for now, I don't know which chests we want our loot to be in.
@ -0,0 +29,4 @@protected @NotNull ObjectArrayList<ItemStack> doApply(ObjectArrayList<ItemStack> generatedLoot, LootContext context) {var level = context.getLevel();var recipeManager = level.getRecipeManager();return generatedLoot.stream().map(stack ->Yeah that'd be the intention :)
Thanks for the review Ferri!