-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Mod Loader (Required)
NeoForge
Minecraft Version(s) (Required)
1.21.10
Mod Version(s) (Required)
21.10.0
Notes (Required)
- Install
Archery Thingsmod +Easy Anvil - Get any Chestplate and Quiver from creative tab
- Open Anvil Menu
- Put chestplate to the left and quiver to the right
- Crash
Based on my testing, this error only happned to NeoForge, Fabric is working fine.
Archery Things are subscribed to AnvilUpdateEvent to add anvil recipe:
@SubscribeEvent
public void onAnvilUpdate(AnvilUpdateEvent event) {
ItemStack left = event.getLeft();
ItemStack right = event.getRight();
if (left.get(DataComponents.EQUIPPABLE) != null && left.get(DataComponents.EQUIPPABLE).slot().equals(EquipmentSlot.CHEST) && right.getItem() == ModItems.QUIVER.get() && !left.has(ModDataComponents.STORED_QUIVER.get())){
ItemStack output = event.getLeft().copy();
output.set(ModDataComponents.STORED_QUIVER.get(), new StoredQuiver(right));
event.setOutput(output);
event.setMaterialCost(1);
event.setXpCost(1);
}
}Crash Report (Required)
https://gist.github.com/CoolerProYT/e92407edf135f728b098f8e0981b6058
latest.log (Optional)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working