Configure cauldron operations brewing consumption and feedback

This commit is contained in:
2026-09-12 14:19:03 +03:00
parent cae34a70d5
commit 1ac7dedcb0
10 changed files with 136 additions and 28 deletions
@@ -16,7 +16,10 @@ abstract class SoupStackMixin {
var key = item.unwrapKey().orElse(null);
if (key == null || !key.identifier().getNamespace().equals("minecraft")) return;
switch (key.identifier().getPath()) {
case "mushroom_stew", "rabbit_stew", "beetroot_soup", "suspicious_stew" -> components.set(DataComponents.MAX_STACK_SIZE, 16);
case "mushroom_stew", "rabbit_stew", "beetroot_soup", "suspicious_stew" -> {
var config = online.astradev.cauldron.AstraCauldron.config();
if (config.normalizeVanillaSoups) components.set(DataComponents.MAX_STACK_SIZE, config.soupStackSize);
}
default -> { }
}
}