Hello, please upload the project to github, and give a link
I'm going to do the same in my mod, and I'll try to help you
Also try to use the trigger when the item is crafted in the item procedures
public class TestItem extends Item {
public TestItem() {
super(new Item.Properties().tab(CreativeModeTab.TAB_MISC).stacksTo(64).rarity(Rarity.COMMON));
}
@Override
public void onCraftedBy(ItemStack itemstack, Level world, Player entity) {
super.onCraftedBy(itemstack, world, entity);
customcode.execute(world, entity.getX(), entity.getY(), entity.getZ());
}
}
I also suspect that the event when an item is crafted, from player events, is being listened to in the crafting grid of the player's inventory window, but I could be wrong
Also try to display the values you need through tooltips