From b18c99b39331e34d35d7dfeee04d88b46038c377 Mon Sep 17 00:00:00 2001 From: Shahrian Masud Date: Tue, 21 Jul 2026 20:01:26 -0400 Subject: [PATCH 1/6] Added logging for container item changes --- .../java/org/mintype/logging/DataBuilder.java | 14 ++ .../mixin/AbstractContainerMenuMixin.java | 146 ++++++++++++++++++ .../org/mintype/mixin/ServerPlayerMixin.java | 2 +- src/main/resources/forensic.mixins.json | 3 +- 4 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java diff --git a/src/main/java/org/mintype/logging/DataBuilder.java b/src/main/java/org/mintype/logging/DataBuilder.java index 23103d1..9517103 100644 --- a/src/main/java/org/mintype/logging/DataBuilder.java +++ b/src/main/java/org/mintype/logging/DataBuilder.java @@ -41,4 +41,18 @@ public static JsonObject explosion( return json; } + + public static JsonObject itemChange( + String action, + String item, + int amount + ) { + JsonObject json = new JsonObject(); + + json.addProperty("action", action); + json.addProperty("item", item); + json.addProperty("amount", amount); + + return json; + } } \ No newline at end of file diff --git a/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java b/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java new file mode 100644 index 0000000..041d1a2 --- /dev/null +++ b/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java @@ -0,0 +1,146 @@ +package org.mintype.mixin; + +import net.minecraft.core.BlockPos; +import net.minecraft.server.level.ServerPlayer; +import net.minecraft.world.entity.player.Player; +import net.minecraft.world.inventory.AbstractContainerMenu; +import net.minecraft.world.inventory.ClickAction; +import net.minecraft.world.inventory.ContainerInput; +import net.minecraft.world.inventory.Slot; +import net.minecraft.world.item.ItemStack; +import net.minecraft.world.level.block.entity.ChestBlockEntity; +import org.mintype.Forensic; +import org.mintype.database.model.ActionType; +import org.mintype.logging.DataBuilder; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Unique; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +import java.util.ArrayList; +import java.util.List; + +@Mixin(AbstractContainerMenu.class) +public class AbstractContainerMenuMixin { + + @Unique + private List forensic$before = new ArrayList<>(); + + @Inject( + method = "clicked", + at = @At("HEAD") + ) + private void forensic$captureBefore( + int slotIndex, int buttonNum, ContainerInput containerInput, Player player, CallbackInfo ci + ) { + + AbstractContainerMenu menu = (AbstractContainerMenu) (Object) this; + + if (slotIndex < 0 || slotIndex >= menu.slots.size()) { + return; + } + + forensic$before.clear(); + + for (Slot slot : menu.slots) { + forensic$before.add(slot.getItem().copy()); + } + } + + @Inject( + method = "clicked", + at = @At("RETURN") + ) + private void forensic$captureAfter( + int slotIndex, int buttonNum, ContainerInput containerInput, Player player, CallbackInfo ci + ) { + AbstractContainerMenu menu = (AbstractContainerMenu) (Object) this; + +// Slot slot = menu.slots.getFirst(); +// +// System.out.println(slot.container.getClass().getName()); +// +// for (int i = 0; i < menu.slots.size(); i++) { +// +// ItemStack before = forensic$before.get(i); +// ItemStack after = menu.slots.get(i).getItem(); +// +// if (!ItemStack.matches(before, after)) { +// +// System.out.println( +// "Slot " + i + +// ": " + before + +// " -> " + after +// ); +// } +// } + for (int i = 0; i < menu.slots.size(); i++) { + + ItemStack before = forensic$before.get(i); + ItemStack after = menu.slots.get(i).getItem(); + + if (!ItemStack.matches(before, after)) { + + Slot changedSlot = menu.slots.get(i); + + if (!(changedSlot.container instanceof ChestBlockEntity chest)) { + continue; + } + + BlockPos pos = chest.getBlockPos(); + + String item; + int amount; + + if (!before.isEmpty()) { + item = before.getItem().toString(); + amount = before.getCount(); + } else { + item = after.getItem().toString(); + amount = after.getCount(); + } + + + String action; + + if (before.isEmpty() && !after.isEmpty()) { + action = "inserted"; + } else if (!before.isEmpty() && after.isEmpty()) { + action = "removed"; + } else { + action = "changed"; + } + + + System.out.println( + player.getName().getString() + + " " + + action + + " " + + amount + + " " + + item + + " at " + + pos + ); + + + Forensic.logger.log( + player.getUUID(), + player.getName().getString(), + ActionType.CONTAINER_CHANGE, + player.level().dimension().identifier().getPath(), + pos.getX(), + pos.getY(), + pos.getZ(), + DataBuilder.itemChange( + action, + item, + amount + ) + ); + } + } + } +} \ No newline at end of file diff --git a/src/main/java/org/mintype/mixin/ServerPlayerMixin.java b/src/main/java/org/mintype/mixin/ServerPlayerMixin.java index 3300b22..30d75ac 100644 --- a/src/main/java/org/mintype/mixin/ServerPlayerMixin.java +++ b/src/main/java/org/mintype/mixin/ServerPlayerMixin.java @@ -42,7 +42,7 @@ public class ServerPlayerMixin { player.getUUID(), player.getName().getString(), ActionType.CONTAINER_OPEN, - level.dimension().identifier().toString(), + level.dimension().identifier().getPath(), pos.getX(), pos.getY(), pos.getZ(), diff --git a/src/main/resources/forensic.mixins.json b/src/main/resources/forensic.mixins.json index b2ed81d..1f3c428 100644 --- a/src/main/resources/forensic.mixins.json +++ b/src/main/resources/forensic.mixins.json @@ -5,7 +5,8 @@ "mixins": [ "BlockItemMixin", "ServerExplosionMixin", - "ServerPlayerMixin" + "ServerPlayerMixin", + "AbstractContainerMenuMixin" ], "injectors": { "defaultRequire": 1 From c185fb1b58fd19e8adf1548502ad3d89d5fe90c8 Mon Sep 17 00:00:00 2001 From: Shahrian Masud Date: Wed, 22 Jul 2026 13:02:32 -0400 Subject: [PATCH 2/6] Updated LogFormatter for container changes --- .../org/mintype/logging/LogFormatter.java | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/src/main/java/org/mintype/logging/LogFormatter.java b/src/main/java/org/mintype/logging/LogFormatter.java index 4af6b19..1ecadd4 100644 --- a/src/main/java/org/mintype/logging/LogFormatter.java +++ b/src/main/java/org/mintype/logging/LogFormatter.java @@ -208,6 +208,71 @@ public static Component formatLogs(List logs) { private static Component formatEntry(LogEntry log) { + return switch (log.action()) { + case EXPLOSION -> formatExplosion(log); + case CONTAINER_CHANGE -> formatContainerChange(log); + default -> formatNormal(log); + }; + } + + private static Component formatContainerChange(LogEntry log) { + + MutableComponent message = Component.empty(); + + message.append( + Component.literal( + formatTime(log.timestamp()) + " ago - " + ).withColor(GRAY) + ); + + if (log.playerName() != null) { + message.append( + Component.literal(log.playerName()) + .withColor(ORANGE) + ); + } else { + message.append(Component.literal("Unknown")); + } + + String action = log.data().get("action").getAsString(); + + switch (action) { + + case "inserted" -> + message.append(Component.literal(" inserted ")); + + case "removed" -> + message.append(Component.literal(" removed ")); + + case "changed" -> + message.append(Component.literal(" changed ")); + + default -> + message.append(Component.literal(" modified ")); + } + + String item = log.data().get("item").getAsString(); + + if (item.contains(":")) { + item = item.substring(item.indexOf(':') + 1); + } + + int amount = log.data().get("amount").getAsInt(); + + message.append( + Component.literal(amount + " ") + ); + + message.append( + Component.literal(item) + .withColor(ORANGE) + ); + + return message; + } + + private static Component formatNormal(LogEntry log) { + if (log.action() == ActionType.EXPLOSION) { return formatExplosion(log); } From 8d5bed5c85a90e1fa6cb2d8cf90494e5c976a04d Mon Sep 17 00:00:00 2001 From: Shahrian Masud Date: Wed, 22 Jul 2026 13:19:58 -0400 Subject: [PATCH 3/6] Adding formating for container openings --- .../org/mintype/logging/LogFormatter.java | 52 ++++++++++++++++++- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/mintype/logging/LogFormatter.java b/src/main/java/org/mintype/logging/LogFormatter.java index 1ecadd4..4457bca 100644 --- a/src/main/java/org/mintype/logging/LogFormatter.java +++ b/src/main/java/org/mintype/logging/LogFormatter.java @@ -10,7 +10,9 @@ public class LogFormatter { private static final int ORANGE = 0xFF9900; - private static final int GRAY = 0x808080; + private static final int GRAY = 0x808080; + private static final int GREEN = 0x00FF00; + private static final int RED = 0xFF0000; // public static Component format(LogEntry log) { // @@ -210,11 +212,52 @@ private static Component formatEntry(LogEntry log) { return switch (log.action()) { case EXPLOSION -> formatExplosion(log); + case CONTAINER_OPEN -> formatContainerOpen(log); case CONTAINER_CHANGE -> formatContainerChange(log); default -> formatNormal(log); }; } + private static Component formatContainerOpen(LogEntry log) { + + MutableComponent message = Component.empty(); + + message.append( + Component.literal( + formatTime(log.timestamp()) + " ago - " + ).withColor(GRAY) + ); + + if (log.playerName() != null) { + message.append( + Component.literal(log.playerName()) + .withColor(ORANGE) + ); + } else { + message.append( + Component.literal("Unknown") + ); + } + + message.append( + Component.literal(" opened ") + ); + + if (log.data() != null && log.data().has("block")) { + message.append( + Component.literal( + log.data().get("block").getAsString() + ).withColor(ORANGE) + ); + } else { + message.append( + Component.literal("container") + ); + } + + return message; + } + private static Component formatContainerChange(LogEntry log) { MutableComponent message = Component.empty(); @@ -236,13 +279,17 @@ private static Component formatContainerChange(LogEntry log) { String action = log.data().get("action").getAsString(); + int amountColor = GREEN; + switch (action) { case "inserted" -> message.append(Component.literal(" inserted ")); - case "removed" -> + case "removed" -> { message.append(Component.literal(" removed ")); + amountColor = RED; + } case "changed" -> message.append(Component.literal(" changed ")); @@ -261,6 +308,7 @@ private static Component formatContainerChange(LogEntry log) { message.append( Component.literal(amount + " ") + .withColor(amountColor) ); message.append( From 6aedee614d72e54898f1661dac25dd42f64b56bb Mon Sep 17 00:00:00 2001 From: Shahrian Masud Date: Thu, 27 Aug 2026 11:23:45 -0400 Subject: [PATCH 4/6] updating block amounts is more accurate now --- .../mixin/AbstractContainerMenuMixin.java | 252 ++++++++++++++---- 1 file changed, 198 insertions(+), 54 deletions(-) diff --git a/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java b/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java index 041d1a2..a308379 100644 --- a/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java +++ b/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java @@ -57,74 +57,113 @@ public class AbstractContainerMenuMixin { ) { AbstractContainerMenu menu = (AbstractContainerMenu) (Object) this; -// Slot slot = menu.slots.getFirst(); -// -// System.out.println(slot.container.getClass().getName()); -// -// for (int i = 0; i < menu.slots.size(); i++) { -// -// ItemStack before = forensic$before.get(i); -// ItemStack after = menu.slots.get(i).getItem(); -// -// if (!ItemStack.matches(before, after)) { -// -// System.out.println( -// "Slot " + i + -// ": " + before + -// " -> " + after -// ); -// } -// } + if (forensic$before.size() != menu.slots.size()) { + return; + } + for (int i = 0; i < menu.slots.size(); i++) { + Slot changedSlot = menu.slots.get(i); + + if (!(changedSlot.container instanceof ChestBlockEntity chest)) { + continue; + } + + BlockPos pos = chest.getBlockPos(); + ItemStack before = forensic$before.get(i); ItemStack after = menu.slots.get(i).getItem(); - if (!ItemStack.matches(before, after)) { - - Slot changedSlot = menu.slots.get(i); + int beforeCount = before.isEmpty() ? 0 : before.getCount(); + int afterCount = after.isEmpty() ? 0 : after.getCount(); - if (!(changedSlot.container instanceof ChestBlockEntity chest)) { - continue; - } +// Same item, only the amount changed + if (!before.isEmpty() + && !after.isEmpty() + && ItemStack.isSameItemSameComponents(before, after)) { - BlockPos pos = chest.getBlockPos(); + int difference = afterCount - beforeCount; - String item; - int amount; + if (difference > 0) { + Forensic.logger.log( + player.getUUID(), + player.getName().getString(), + ActionType.CONTAINER_CHANGE, + player.level().dimension().identifier().getPath(), + pos.getX(), + pos.getY(), + pos.getZ(), + DataBuilder.itemChange( + "inserted", + after.getItem().toString(), + difference + ) + ); - if (!before.isEmpty()) { - item = before.getItem().toString(); - amount = before.getCount(); - } else { - item = after.getItem().toString(); - amount = after.getCount(); + } else if (difference < 0) { + Forensic.logger.log( + player.getUUID(), + player.getName().getString(), + ActionType.CONTAINER_CHANGE, + player.level().dimension().identifier().getPath(), + pos.getX(), + pos.getY(), + pos.getZ(), + DataBuilder.itemChange( + "removed", + before.getItem().toString(), + -difference + ) + ); } + continue; + } - String action; +// Slot went from empty -> item + if (before.isEmpty() && !after.isEmpty()) { - if (before.isEmpty() && !after.isEmpty()) { - action = "inserted"; - } else if (!before.isEmpty() && after.isEmpty()) { - action = "removed"; - } else { - action = "changed"; - } + Forensic.logger.log( + player.getUUID(), + player.getName().getString(), + ActionType.CONTAINER_CHANGE, + player.level().dimension().identifier().getPath(), + pos.getX(), + pos.getY(), + pos.getZ(), + DataBuilder.itemChange( + "inserted", + after.getItem().toString(), + afterCount + ) + ); + continue; + } - System.out.println( - player.getName().getString() - + " " - + action - + " " - + amount - + " " - + item - + " at " - + pos +// Slot went from item -> empty + if (!before.isEmpty() && after.isEmpty()) { + + Forensic.logger.log( + player.getUUID(), + player.getName().getString(), + ActionType.CONTAINER_CHANGE, + player.level().dimension().identifier().getPath(), + pos.getX(), + pos.getY(), + pos.getZ(), + DataBuilder.itemChange( + "removed", + before.getItem().toString(), + beforeCount + ) ); + continue; + } + +// Different items: log as removal + insertion + if (!before.isEmpty() && !after.isEmpty()) { Forensic.logger.log( player.getUUID(), @@ -135,12 +174,117 @@ public class AbstractContainerMenuMixin { pos.getY(), pos.getZ(), DataBuilder.itemChange( - action, - item, - amount + "removed", + before.getItem().toString(), + beforeCount + ) + ); + + Forensic.logger.log( + player.getUUID(), + player.getName().getString(), + ActionType.CONTAINER_CHANGE, + player.level().dimension().identifier().getPath(), + pos.getX(), + pos.getY(), + pos.getZ(), + DataBuilder.itemChange( + "inserted", + after.getItem().toString(), + afterCount ) ); } + +// if (!ItemStack.matches(before, after)) { +// +// Slot changedSlot = menu.slots.get(i); +// +// if (!(changedSlot.container instanceof ChestBlockEntity chest)) { +// continue; +// } +// +// BlockPos pos = chest.getBlockPos(); +// +// String item; +// +// int amount; +// String action; +// +// if (before.isEmpty() && !after.isEmpty()) { +// +// // Empty -> item +// action = "inserted"; +// item = after.getItem().toString(); +// amount = after.getCount(); +// +// } else if (!before.isEmpty() && after.isEmpty()) { +// +// // Item -> empty +// action = "removed"; +// item = before.getItem().toString(); +// amount = before.getCount(); +// +// } else if (!before.isEmpty() && !after.isEmpty()) { +// +// // Item -> same item, different amount +// if (ItemStack.isSameItemSameComponents(before, after)) { +// +// int difference = after.getCount() - before.getCount(); +// +// if (difference > 0) { +// action = "added"; +// amount = difference; +// } else if (difference < 0) { +// action = "removed"; +// amount = -difference; +// } else { +// continue; +// } +// +// item = after.getItem().toString(); +// +// } else { +// +// // Different items +// action = "changed"; +// item = after.getItem().toString(); +// amount = after.getCount(); +// } +// +// } else { +// continue; +// } +// +// +//// System.out.println( +//// player.getName().getString() +//// + " " +//// + action +//// + " " +//// + amount +//// + " " +//// + item +//// + " at " +//// + pos +//// ); +//// +//// +//// Forensic.logger.log( +//// player.getUUID(), +//// player.getName().getString(), +//// ActionType.CONTAINER_CHANGE, +//// player.level().dimension().identifier().getPath(), +//// pos.getX(), +//// pos.getY(), +//// pos.getZ(), +//// DataBuilder.itemChange( +//// action, +//// item, +//// amount +//// ) +//// ); +// } } } } \ No newline at end of file From ca47d69e0bd76240e140ec4c23a04480f116dd9a Mon Sep 17 00:00:00 2001 From: Shahrian Masud Date: Thu, 27 Aug 2026 11:24:26 -0400 Subject: [PATCH 5/6] minor color ui fix --- src/main/java/org/mintype/logging/LogFormatter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/mintype/logging/LogFormatter.java b/src/main/java/org/mintype/logging/LogFormatter.java index 4457bca..f3b4420 100644 --- a/src/main/java/org/mintype/logging/LogFormatter.java +++ b/src/main/java/org/mintype/logging/LogFormatter.java @@ -173,6 +173,7 @@ public static Component formatLogs(List logs) { // Header once message.append( Component.literal("----- ") + .withColor(GRAY) ); message.append( From aef123ff84b593ac29625e40ee5e65c5e2c9c5c8 Mon Sep 17 00:00:00 2001 From: Shahrian Masud Date: Thu, 27 Aug 2026 11:29:58 -0400 Subject: [PATCH 6/6] Clean up code --- .../org/mintype/logging/LogFormatter.java | 87 ---------------- .../mixin/AbstractContainerMenuMixin.java | 98 +------------------ 2 files changed, 4 insertions(+), 181 deletions(-) diff --git a/src/main/java/org/mintype/logging/LogFormatter.java b/src/main/java/org/mintype/logging/LogFormatter.java index f3b4420..f4750ac 100644 --- a/src/main/java/org/mintype/logging/LogFormatter.java +++ b/src/main/java/org/mintype/logging/LogFormatter.java @@ -14,87 +14,6 @@ public class LogFormatter { private static final int GREEN = 0x00FF00; private static final int RED = 0xFF0000; -// public static Component format(LogEntry log) { -// -// MutableComponent message = Component.empty(); -// -// // ----- [Forensic] ----- (x:y:z) -// message.append( -// Component.literal("----- ") -// ); -// -// message.append( -// Component.literal("[Forensic]") -// .withColor(ORANGE) -// ); -// -// message.append( -// Component.literal( -// " ----- (x:" + -// log.x() + -// "/y:" + -// log.y() + -// "/z:" + -// log.z() + -// ")" -// ).withColor(GRAY) -// ); -// -// -// // Time ago -// message.append( -// Component.literal( -// "\n" + formatTime(log.timestamp()) + " ago - " -// ).withColor(GRAY) -// ); -// -// -// // Player -// if (log.player() != null) { -// message.append( -// Component.literal( -// log.player().toString() -// ).withColor(ORANGE) -// ); -// } else { -// message.append( -// Component.literal("Unknown") -// ); -// } -// -// -// // Action -// message.append( -// Component.literal( -// " " + formatAction(log) -// ) -// ); -// -// -// // Block -// if (log.data() != null && log.data().has("block")) { -// -// message.append( -// Component.literal(" (") -// ); -// -// message.append( -// Component.literal( -// log.data() -// .get("block") -// .getAsString() -// ).withColor(ORANGE) -// ); -// -// message.append( -// Component.literal(")") -// ); -// } -// -// -// return message; -// } - private static String formatAction(LogEntry log) { return switch (log.action()) { @@ -361,10 +280,6 @@ private static Component formatNormal(LogEntry log) { .getAsString() ).withColor(ORANGE) ); - -// message.append( -// Component.literal(")") -// ); } return message; @@ -382,8 +297,6 @@ private static Component formatExplosion(LogEntry log) { String block = log.data().get("block").getAsString(); -// message.append(Component.literal("(")); - message.append( Component.literal(block) .withColor(ORANGE) diff --git a/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java b/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java index a308379..965955f 100644 --- a/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java +++ b/src/main/java/org/mintype/mixin/AbstractContainerMenuMixin.java @@ -77,7 +77,7 @@ public class AbstractContainerMenuMixin { int beforeCount = before.isEmpty() ? 0 : before.getCount(); int afterCount = after.isEmpty() ? 0 : after.getCount(); -// Same item, only the amount changed + // Same item, only the amount changed if (!before.isEmpty() && !after.isEmpty() && ItemStack.isSameItemSameComponents(before, after)) { @@ -120,7 +120,7 @@ public class AbstractContainerMenuMixin { continue; } -// Slot went from empty -> item + // Slot went from empty -> item if (before.isEmpty() && !after.isEmpty()) { Forensic.logger.log( @@ -141,7 +141,7 @@ public class AbstractContainerMenuMixin { continue; } -// Slot went from item -> empty + // Slot went from item -> empty if (!before.isEmpty() && after.isEmpty()) { Forensic.logger.log( @@ -162,7 +162,7 @@ public class AbstractContainerMenuMixin { continue; } -// Different items: log as removal + insertion + // Different items: log as removal + insertion if (!before.isEmpty() && !after.isEmpty()) { Forensic.logger.log( @@ -195,96 +195,6 @@ public class AbstractContainerMenuMixin { ) ); } - -// if (!ItemStack.matches(before, after)) { -// -// Slot changedSlot = menu.slots.get(i); -// -// if (!(changedSlot.container instanceof ChestBlockEntity chest)) { -// continue; -// } -// -// BlockPos pos = chest.getBlockPos(); -// -// String item; -// -// int amount; -// String action; -// -// if (before.isEmpty() && !after.isEmpty()) { -// -// // Empty -> item -// action = "inserted"; -// item = after.getItem().toString(); -// amount = after.getCount(); -// -// } else if (!before.isEmpty() && after.isEmpty()) { -// -// // Item -> empty -// action = "removed"; -// item = before.getItem().toString(); -// amount = before.getCount(); -// -// } else if (!before.isEmpty() && !after.isEmpty()) { -// -// // Item -> same item, different amount -// if (ItemStack.isSameItemSameComponents(before, after)) { -// -// int difference = after.getCount() - before.getCount(); -// -// if (difference > 0) { -// action = "added"; -// amount = difference; -// } else if (difference < 0) { -// action = "removed"; -// amount = -difference; -// } else { -// continue; -// } -// -// item = after.getItem().toString(); -// -// } else { -// -// // Different items -// action = "changed"; -// item = after.getItem().toString(); -// amount = after.getCount(); -// } -// -// } else { -// continue; -// } -// -// -//// System.out.println( -//// player.getName().getString() -//// + " " -//// + action -//// + " " -//// + amount -//// + " " -//// + item -//// + " at " -//// + pos -//// ); -//// -//// -//// Forensic.logger.log( -//// player.getUUID(), -//// player.getName().getString(), -//// ActionType.CONTAINER_CHANGE, -//// player.level().dimension().identifier().getPath(), -//// pos.getX(), -//// pos.getY(), -//// pos.getZ(), -//// DataBuilder.itemChange( -//// action, -//// item, -//// amount -//// ) -//// ); -// } } } } \ No newline at end of file