# Pastebin BmdOr3UA def getModelLocation(stack: ItemStack): ModelResourceLocation = { new ModelResourceLocation(Galvanize.getModId + ":" + this.name, if (stack.hasTagCompound) "type=" + stack.getTagCompound.getString("name") else "inventory" ) }