These are the items. I already tried by changing Item to ItemRecord, no success.
public static Item itemRecordStillAlive;
public static Item itemRecordWantYouGone;
This is the items initialization:
@SubscribeEvent
public void onRegisterItem(RegistryEvent.Register<Item> event) {
PortalGun.itemRecordStillAlive = new ItemRecords("Still Alive", SoundIndex.r_records_still_alive, "portalgun:item_record_still_alive","record");
PortalGun.itemRecordWantYouGone = new ItemRecords("Want You Gone", SoundIndex.r_records_want_you_gone, "portalgun:item_record_want_you_gone", "record");
event.getRegistry().register(PortalGun.itemRecordStillAlive);
event.getRegistry().register(PortalGun.itemRecordWantYouGone);
}
This is the model initialization:
@SubscribeEvent
public void onModelRegistry(final ModelRegistryEvent event) {
ModelLoader.setCustomModelResourceLocation(PortalGun.itemRecordStillAlive, 0, new ModelResourceLocation("portalgun:item_record_still_alive", "inventory"));
ModelLoader.setCustomModelResourceLocation(PortalGun.itemRecordWantYouGone, 0, new ModelResourceLocation("portalgun:item_record_want_you_gone", "inventory"));
}