ForgeRegistries.ITEMS.getObject(new ResourceLocation("modid", "path"))
ForgeRegistries.ITEMS.getObject(new ResourceLocation("modid", "path"))
А если предмет с вариантами, типа, modid:item_id:1, modid:item_id:2 и т.д.?ForgeRegistries.ITEMS.getObject(new ResourceLocation("modid", "path"))
ItemStack stack = new ItemStack(ForgeRegistries.ITEMS.getValue(new ResourceLocation(modid, item_id)), 1);