18 lines
502 B
JavaScript
18 lines
502 B
JavaScript
console.info("[SOCIETY] compactingDrawerExploit.js loaded");
|
|
|
|
BlockEvents.rightClicked(
|
|
[
|
|
"functionalstorage:compacting_drawer",
|
|
"functionalstorage:simple_compacting_drawer",
|
|
"functionalstorage:compacting_framed_drawer",
|
|
"functionalstorage:framed_simple_compacting_drawer",
|
|
],
|
|
(e) => {
|
|
const { item, player } = e;
|
|
if (item.nbt && item.nbt.quality_food) {
|
|
player.tell(Text.translatable("society.compacting_drawer.quality_item").red());
|
|
e.cancel();
|
|
}
|
|
}
|
|
);
|